home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-04-19 | 25.0 KB | [TEXT/ttxt] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Apr 19 00:13:19 1995, modified Wed Apr 19 00:13:19 1995, creator SimpleText, type ASCII, 24828 bytes "Contents" , at 0x617c 566 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 43 6f 6e 74 65 6e | 74 73 00 00 00 00 00 00 |..Conten|ts......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 00 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 60 fc 00 | 00 02 36 ab ba 3e 5f ab |.....`..|..6..>_.|
|00000060| ba 3e 5f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.>_.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ad 89 00 00 |........|........|
|00000080| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 3a 20 43 6f |VideoToo|lbox: Co|
|00000090| 6e 74 65 6e 74 73 0d 41 | 70 72 69 6c 20 31 38 2c |ntents.A|pril 18,|
|000000a0| 20 31 39 39 35 0d 0d 43 | 4f 4e 54 45 4e 54 53 20 | 1995..C|ONTENTS |
|000000b0| 4f 46 20 54 48 45 20 56 | 49 44 45 4f 54 4f 4f 4c |OF THE V|IDEOTOOL|
|000000c0| 42 4f 58 20 44 49 53 4b | 3a 0d 0d a5 52 65 61 64 |BOX DISK|:...Read|
|000000d0| 20 6d 65 2e 0d a5 43 6f | 6e 74 65 6e 74 73 2d 74 | me...Co|ntents-t|
|000000e0| 68 69 73 20 66 69 6c 65 | 2e 0d a5 43 68 61 6e 67 |his file|...Chang|
|000000f0| 65 73 20 26 20 22 4e 6f | 74 65 73 3a 43 68 61 6e |es & "No|tes:Chan|
|00000100| 67 65 73 20 31 39 39 30 | 2d 33 22 d1 63 68 72 6f |ges 1990|-3".chro|
|00000110| 6e 6f 6c 6f 67 69 63 61 | 6c 20 6c 69 73 74 73 20 |nologica|l lists |
|00000120| 6f 66 20 61 64 64 69 74 | 69 6f 6e 73 20 61 6e 64 |of addit|ions and|
|00000130| 20 62 75 67 20 66 69 78 | 65 73 2e 0d a5 41 64 76 | bug fix|es...Adv|
|00000140| 69 63 65 d1 6c 69 73 74 | 20 6f 66 20 62 6f 6f 6b |ice.list| of book|
|00000150| 73 20 61 6e 64 20 73 6f | 66 74 77 61 72 65 20 74 |s and so|ftware t|
|00000160| 6f 20 68 65 6c 70 20 69 | 6e 20 70 72 6f 67 72 61 |o help i|n progra|
|00000170| 6d 6d 69 6e 67 20 76 69 | 73 69 6f 6e 20 65 78 70 |mming vi|sion exp|
|00000180| 65 72 69 6d 65 6e 74 73 | 2e 0d a5 50 6f 72 74 61 |eriments|...Porta|
|00000190| 62 69 6c 69 74 79 2d 68 | 6f 77 20 74 6f 20 6d 61 |bility-h|ow to ma|
|000001a0| 6b 65 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 73 |ke your |programs|
|000001b0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|000001c0| 20 61 20 77 69 64 65 20 | 72 61 6e 67 65 20 6f 66 | a wide |range of|
|000001d0| 20 4d 61 63 73 2e 0d a5 | 56 69 64 65 6f 20 73 79 | Macs...|Video sy|
|000001e0| 6e 63 68 2d 65 78 70 6c | 61 69 6e 73 20 68 6f 77 |nch-expl|ains how|
|000001f0| 20 74 6f 20 73 79 6e 63 | 68 72 6f 6e 69 7a 65 20 | to sync|hronize |
|00000200| 61 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 61 20 76 |a progra|m to a v|
|00000210| 69 64 65 6f 20 63 61 72 | 64 2e 0d a5 56 69 64 65 |ideo car|d...Vide|
|00000220| 6f 20 62 75 67 73 2d 6c | 69 73 74 73 20 6b 6e 6f |o bugs-l|ists kno|
|00000230| 77 6e 20 62 75 67 73 20 | 69 6e 20 76 69 64 65 6f |wn bugs |in video|
|00000240| 20 64 72 69 76 65 72 73 | 2e 0d a5 56 69 64 65 6f | drivers|...Video|
|00000250| 20 61 74 74 65 6e 75 61 | 74 6f 72 d1 6f 72 64 65 | attenua|tor.orde|
|00000260| 72 69 6e 67 2c 20 69 6e | 73 74 61 6c 6c 61 74 69 |ring, in|stallati|
|00000270| 6f 6e 2c 20 61 6e 64 20 | 75 70 67 72 61 64 69 6e |on, and |upgradin|
|00000280| 67 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 2e 0d |g instru|ctions..|
|00000290| a5 41 6c 6c 2e b9 2c 20 | 41 6c 6c 2e 36 38 6b 2e |.All.., |All.68k.|
|000002a0| b5 2c 20 61 6e 64 20 41 | 6c 6c 2e 70 70 63 2e b5 |., and A|ll.ppc..|
|000002b0| 20 61 72 65 20 70 72 6f | 6a 65 63 74 20 66 69 6c | are pro|ject fil|
|000002c0| 65 73 20 74 68 61 74 20 | 61 6c 6c 6f 77 20 79 6f |es that |allow yo|
|000002d0| 75 20 74 6f 20 62 72 6f | 77 73 65 20 74 68 72 6f |u to bro|wse thro|
|000002e0| 75 67 68 20 61 6c 6c 20 | 74 68 65 20 73 6f 75 72 |ugh all |the sour|
|000002f0| 63 65 73 20 69 6e 20 74 | 68 65 20 65 6e 74 69 72 |ces in t|he entir|
|00000300| 65 20 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 20 64 |e VideoT|oolbox d|
|00000310| 69 73 6b 2c 20 69 6e 63 | 6c 75 64 69 6e 67 20 64 |isk, inc|luding d|
|00000320| 65 6d 6f 73 20 61 6e 64 | 20 75 74 69 6c 69 74 69 |emos and| utiliti|
|00000330| 65 73 2e 20 22 2e b9 22 | 20 69 6e 64 69 63 61 74 |es. ".."| indicat|
|00000340| 65 73 20 61 20 54 48 49 | 4e 4b 20 43 20 37 20 70 |es a THI|NK C 7 p|
|00000350| 72 6f 6a 65 63 74 3b 20 | 22 2e b5 22 20 69 6e 64 |roject; |".." ind|
|00000360| 69 63 61 74 65 73 20 61 | 20 4d 65 74 72 6f 77 65 |icates a| Metrowe|
|00000370| 72 6b 73 20 43 6f 64 65 | 57 61 72 72 69 6f 72 20 |rks Code|Warrior |
|00000380| 43 20 43 57 35 20 70 72 | 6f 6a 65 63 74 2e 20 44 |C CW5 pr|oject. D|
|00000390| 6f 75 62 6c 65 20 63 6c | 69 63 6b 20 74 68 65 20 |ouble cl|ick the |
|000003a0| 70 72 6f 6a 65 63 74 20 | 74 6f 20 73 74 61 72 74 |project |to start|
|000003b0| 20 75 70 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 | up the |appropri|
|000003c0| 61 74 65 20 63 6f 6d 70 | 69 6c 65 72 2c 20 74 68 |ate comp|iler, th|
|000003d0| 65 6e 20 64 6f 75 62 6c | 65 20 63 6c 69 63 6b 20 |en doubl|e click |
|000003e0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 6e 79 20 |the name| of any |
|000003f0| 73 6f 75 72 63 65 20 66 | 69 6c 65 20 79 6f 75 20 |source f|ile you |
|00000400| 77 61 6e 74 20 74 6f 20 | 65 78 61 6d 69 6e 65 2e |want to |examine.|
|00000410| 0d a5 44 65 6d 6f 73 d1 | 61 20 66 6f 6c 64 65 72 |..Demos.|a folder|
|00000420| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 61 20 76 61 | contain|ing a va|
|00000430| 72 69 65 74 79 20 6f 66 | 20 72 65 61 64 79 2d 74 |riety of| ready-t|
|00000440| 6f 2d 72 75 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |o-run ap|plicatio|
|00000450| 6e 73 20 64 65 6d 6f 6e | 73 74 72 61 74 69 6e 67 |ns demon|strating|
|00000460| 20 76 61 72 69 6f 75 73 | 20 66 65 61 74 75 72 65 | various| feature|
|00000470| 73 20 6f 66 20 74 68 65 | 20 56 69 64 65 6f 54 6f |s of the| VideoTo|
|00000480| 6f 6c 62 6f 78 20 73 6f | 66 74 77 61 72 65 2e 20 |olbox so|ftware. |
|00000490| 53 6f 75 72 63 65 73 20 | 61 72 65 20 69 6e 63 6c |Sources |are incl|
|000004a0| 75 64 65 64 2e 20 0d a5 | 4e 6f 74 65 73 d1 69 6d |uded. ..|Notes.im|
|000004b0| 70 72 6f 76 65 6d 65 6e | 74 73 20 74 6f 20 54 48 |provemen|ts to TH|
|000004c0| 49 4e 4b 20 43 20 61 6e | 64 20 4e 75 6d 65 72 69 |INK C an|d Numeri|
|000004d0| 63 61 6c 20 52 65 63 69 | 70 65 73 2c 20 64 6f 63 |cal Reci|pes, doc|
|000004e0| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 66 6f 72 20 4c |umentati|on for L|
|000004f0| 75 6d 69 6e 61 6e 63 65 | 2e 63 2c 20 22 43 68 61 |uminance|.c, "Cha|
|00000500| 6e 67 65 73 20 31 39 39 | 30 2d 33 22 2c 20 61 6e |nges 199|0-3", an|
|00000510| 64 20 65 78 70 6c 61 6e | 61 74 69 6f 6e 73 20 6f |d explan|ations o|
|00000520| 66 20 76 69 64 65 6f 20 | 61 6e 64 20 63 6f 6d 70 |f video |and comp|
|00000530| 69 6c 65 72 20 61 72 63 | 61 6e 61 20 63 6f 6c 6c |iler arc|ana coll|
|00000540| 65 63 74 65 64 20 66 72 | 6f 6d 20 76 61 72 69 6f |ected fr|om vario|
|00000550| 75 73 20 73 6f 75 72 63 | 65 73 2e 0d a5 54 69 6d |us sourc|es...Tim|
|00000560| 65 56 69 64 65 6f 20 74 | 65 73 74 73 20 61 6c 6c |eVideo t|ests all|
|00000570| 20 6f 66 20 79 6f 75 72 | 20 63 6f 6d 70 75 74 65 | of your| compute|
|00000580| 72 27 73 20 62 75 69 6c | 74 2d 69 6e 20 76 69 64 |r's buil|t-in vid|
|00000590| 65 6f 2c 20 76 69 64 65 | 6f 20 63 61 72 64 73 2c |eo, vide|o cards,|
|000005a0| 20 61 6e 64 20 76 69 64 | 65 6f 20 64 72 69 76 65 | and vid|eo drive|
|000005b0| 72 73 2e 20 48 69 67 68 | 6c 79 20 72 65 63 6f 6d |rs. High|ly recom|
|000005c0| 6d 65 6e 64 65 64 2e 20 | 57 6f 72 6b 73 20 6f 6e |mended. |Works on|
|000005d0| 20 61 6c 6c 20 4d 61 63 | 73 2e 20 4a 75 73 74 20 | all Mac|s. Just |
|000005e0| 64 6f 75 62 6c 65 2d 63 | 6c 69 63 6b 20 69 74 2e |double-c|lick it.|
|000005f0| 0d a5 55 74 69 6c 69 74 | 69 65 73 d1 61 20 66 6f |..Utilit|ies.a fo|
|00000600| 6c 64 65 72 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |lder con|taining |
|00000610| 43 61 6c 69 62 72 61 74 | 65 4c 75 6d 69 6e 61 6e |Calibrat|eLuminan|
|00000620| 63 65 20 61 6e 64 20 6f | 74 68 65 72 20 75 73 65 |ce and o|ther use|
|00000630| 66 75 6c 20 72 65 61 64 | 79 2d 74 6f 2d 72 75 6e |ful read|y-to-run|
|00000640| 20 70 72 6f 6a 65 63 74 | 73 2e 0d a5 56 69 64 65 | project|s...Vide|
|00000650| 6f 54 6f 6f 6c 62 6f 78 | 53 6f 75 72 63 65 73 d1 |oToolbox|Sources.|
|00000660| 61 20 66 6f 6c 64 65 72 | 20 63 6f 6e 74 61 69 6e |a folder| contain|
|00000670| 69 6e 67 20 6d 61 6e 79 | 20 75 73 65 66 75 6c 20 |ing many| useful |
|00000680| 73 75 62 72 6f 75 74 69 | 6e 65 73 2e 20 49 20 73 |subrouti|nes. I s|
|00000690| 75 67 67 65 73 74 20 74 | 68 61 74 20 79 6f 75 20 |uggest t|hat you |
|000006a0| 70 6c 61 63 65 20 61 6e | 20 61 6c 69 61 73 20 74 |place an| alias t|
|000006b0| 6f 20 74 68 65 20 56 69 | 64 65 6f 54 6f 6f 6c 62 |o the Vi|deoToolb|
|000006c0| 6f 78 20 66 6f 6c 64 65 | 72 20 28 6f 72 20 61 74 |ox folde|r (or at|
|000006d0| 20 6c 65 61 73 74 20 74 | 68 65 20 56 69 64 65 6f | least t|he Video|
|000006e0| 54 6f 6f 6c 62 6f 78 53 | 6f 75 72 63 65 73 20 66 |ToolboxS|ources f|
|000006f0| 6f 6c 64 65 72 29 20 69 | 6e 73 69 64 65 20 79 6f |older) i|nside yo|
|00000700| 75 72 20 54 48 49 4e 4b | 20 43 20 22 41 6c 69 61 |ur THINK| C "Alia|
|00000710| 73 65 73 22 20 66 6f 6c | 64 65 72 2e 20 43 6f 64 |ses" fol|der. Cod|
|00000720| 65 57 61 72 72 69 6f 72 | 20 75 73 65 72 73 20 73 |eWarrior| users s|
|00000730| 68 6f 75 6c 64 20 61 64 | 64 20 56 69 64 65 6f 54 |hould ad|d VideoT|
|00000740| 6f 6f 6c 62 6f 78 53 6f | 75 72 63 65 73 20 74 6f |oolboxSo|urces to|
|00000750| 20 74 68 65 69 72 20 70 | 72 6f 6a 65 63 74 27 73 | their p|roject's|
|00000760| 20 61 63 63 65 73 73 20 | 70 61 74 68 2e 20 54 68 | access |path. Th|
|00000770| 61 74 20 77 69 6c 6c 20 | 6d 61 6b 65 20 69 74 20 |at will |make it |
|00000780| 65 61 73 79 20 66 6f 72 | 20 79 6f 75 72 20 70 72 |easy for| your pr|
|00000790| 6f 6a 65 63 74 73 20 74 | 6f 20 61 63 63 65 73 73 |ojects t|o access|
|000007a0| 20 74 68 65 73 65 20 72 | 6f 75 74 69 6e 65 73 20 | these r|outines |
|000007b0| 77 69 74 68 6f 75 74 20 | 68 61 76 69 6e 67 20 74 |without |having t|
|000007c0| 6f 20 63 6f 70 79 20 74 | 68 65 6d 20 69 6e 74 6f |o copy t|hem into|
|000007d0| 20 65 61 63 68 20 6f 66 | 20 79 6f 75 72 20 70 72 | each of| your pr|
|000007e0| 6f 6a 65 63 74 27 73 20 | 66 6f 6c 64 65 72 73 2e |oject's |folders.|
|000007f0| 20 49 74 20 77 69 6c 6c | 20 61 6c 73 6f 20 6d 61 | It will| also ma|
|00000800| 6b 65 20 69 74 20 6d 75 | 63 68 20 65 61 73 69 65 |ke it mu|ch easie|
|00000810| 72 20 74 6f 20 75 70 64 | 61 74 65 20 74 68 65 6d |r to upd|ate them|
|00000820| 2c 20 73 69 6e 63 65 20 | 61 6c 6c 20 79 6f 75 72 |, since |all your|
|00000830| 20 70 72 6f 67 72 61 6d | 73 20 77 69 6c 6c 20 73 | program|s will s|
|00000840| 68 61 72 65 20 74 68 65 | 20 73 61 6d 65 20 63 6f |hare the| same co|
|00000850| 70 79 2e 0d 0d 43 4f 4e | 54 45 4e 54 53 20 4f 46 |py...CON|TENTS OF|
|00000860| 20 55 74 69 6c 69 74 69 | 65 73 20 46 4f 4c 44 45 | Utiliti|es FOLDE|
|00000870| 52 3a 0d 0d 43 61 6c 69 | 62 72 61 74 65 4c 75 6d |R:..Cali|brateLum|
|00000880| 69 6e 61 6e 63 65 20 68 | 65 6c 70 73 20 79 6f 75 |inance h|elps you|
|00000890| 20 74 6f 20 6d 65 61 73 | 75 72 65 20 74 68 65 20 | to meas|ure the |
|000008a0| 70 61 72 61 6d 65 74 65 | 72 73 20 6f 66 20 79 6f |paramete|rs of yo|
|000008b0| 75 72 20 76 69 64 65 6f | 20 63 61 72 64 2c 20 49 |ur video| card, I|
|000008c0| 53 52 20 56 69 64 65 6f | 20 41 74 74 65 6e 75 61 |SR Video| Attenua|
|000008d0| 74 6f 72 2c 20 61 6e 64 | 20 6d 6f 6e 69 74 6f 72 |tor, and| monitor|
|000008e0| 2e 20 59 6f 75 20 77 69 | 6c 6c 20 6e 65 65 64 20 |. You wi|ll need |
|000008f0| 61 20 70 68 6f 74 6f 6d | 65 74 65 72 2e 20 43 61 |a photom|eter. Ca|
|00000900| 6c 69 62 72 61 74 65 4c | 75 6d 69 6e 61 6e 63 65 |librateL|uminance|
|00000910| 20 77 69 6c 6c 20 75 73 | 65 20 61 20 44 61 74 61 | will us|e a Data|
|00000920| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 46 4f 52 | Transla|tion FOR|
|00000930| 45 52 55 4e 4e 45 52 20 | 41 2f 44 20 63 61 72 64 |ERUNNER |A/D card|
|00000940| 20 69 66 20 79 6f 75 20 | 68 61 76 65 20 6f 6e 65 | if you |have one|
|00000950| 2e 20 41 6c 6c 20 74 68 | 65 20 72 65 73 75 6c 74 |. All th|e result|
|00000960| 73 20 61 72 65 20 73 74 | 6f 72 65 64 20 69 6e 20 |s are st|ored in |
|00000970| 61 20 22 68 65 61 64 65 | 72 22 20 66 69 6c 65 20 |a "heade|r" file |
|00000980| 63 61 6c 6c 65 64 20 4c | 75 6d 69 6e 61 6e 63 65 |called L|uminance|
|00000990| 52 65 63 6f 72 64 3f 2e | 68 2c 20 77 68 65 72 65 |Record?.|h, where|
|000009a0| 20 3f 20 73 74 61 6e 64 | 73 20 66 6f 72 20 74 68 | ? stand|s for th|
|000009b0| 65 20 73 63 72 65 65 6e | 20 6e 75 6d 62 65 72 2e |e screen| number.|
|000009c0| 20 59 6f 75 20 63 61 6e | 20 74 68 65 6e 20 23 69 | You can| then #i|
|000009d0| 6e 63 6c 75 64 65 20 74 | 68 69 73 20 66 69 6c 65 |nclude t|his file|
|000009e0| 20 61 74 20 63 6f 6d 70 | 69 6c 65 20 74 69 6d 65 | at comp|ile time|
|000009f0| 20 6f 72 20 52 65 61 64 | 4c 75 6d 69 6e 61 6e 63 | or Read|Luminanc|
|00000a00| 65 52 65 63 6f 72 64 20 | 61 74 20 72 75 6e 20 74 |eRecord |at run t|
|00000a10| 69 6d 65 20 69 6e 20 65 | 61 63 68 20 6f 66 20 79 |ime in e|ach of y|
|00000a20| 6f 75 72 20 70 72 6f 67 | 72 61 6d 73 20 74 68 61 |our prog|rams tha|
|00000a30| 74 20 75 73 65 20 74 68 | 61 74 20 73 63 72 65 65 |t use th|at scree|
|00000a40| 6e 2e 0d 0d 43 68 65 63 | 6b 43 6f 6e 74 72 61 73 |n...Chec|kContras|
|00000a50| 74 20 64 6f 65 73 20 61 | 20 72 69 67 6f 72 6f 75 |t does a| rigorou|
|00000a60| 73 20 74 65 73 74 69 6e | 67 20 6f 66 20 74 68 65 |s testin|g of the|
|00000a70| 20 50 65 6c 6c 69 20 26 | 20 5a 68 61 6e 67 20 28 | Pelli &| Zhang (|
|00000a80| 31 39 39 31 29 20 61 6c | 67 6f 72 69 74 68 6d 73 |1991) al|gorithms|
|00000a90| 20 74 68 61 74 20 75 6e | 64 65 72 6c 69 65 20 74 | that un|derlie t|
|00000aa0| 68 65 20 49 53 52 20 56 | 69 64 65 6f 20 61 74 74 |he ISR V|ideo att|
|00000ab0| 65 6e 75 61 74 6f 72 20 | 61 6e 64 20 74 68 65 20 |enuator |and the |
|00000ac0| 4c 75 6d 69 6e 61 6e 63 | 65 2e 63 20 73 6f 66 74 |Luminanc|e.c soft|
|00000ad0| 77 61 72 65 2e 20 59 6f | 75 20 6d 69 67 68 74 20 |ware. Yo|u might |
|00000ae0| 66 69 6e 64 20 69 74 20 | 75 73 65 66 75 6c 20 69 |find it |useful i|
|00000af0| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 74 65 |f you wa|nt to te|
|00000b00| 73 74 20 79 6f 75 72 20 | 49 53 52 20 56 69 64 65 |st your |ISR Vide|
|00000b10| 6f 20 41 74 74 65 6e 75 | 61 74 6f 72 20 61 6e 64 |o Attenu|ator and|
|00000b20| 20 4c 75 6d 69 6e 61 6e | 63 65 2e 63 2e 0d 0d 43 | Luminan|ce.c...C|
|00000b30| 56 4e 65 74 43 6f 6e 76 | 65 72 74 2c 20 62 79 20 |VNetConv|ert, by |
|00000b40| 49 7a 75 6d 69 20 4f 7a | 68 61 77 61 2c 20 63 6f |Izumi Oz|hawa, co|
|00000b50| 6e 76 65 72 74 73 20 74 | 68 65 20 61 64 64 72 65 |nverts t|he addre|
|00000b60| 73 73 20 6c 69 73 74 20 | 61 76 61 69 6c 61 62 6c |ss list |availabl|
|00000b70| 65 20 66 72 6f 6d 20 74 | 68 65 20 43 56 4e 65 74 |e from t|he CVNet|
|00000b80| 20 28 69 2e 65 2e 20 43 | 6f 6c 6f 72 20 61 6e 64 | (i.e. C|olor and|
|00000b90| 20 56 69 73 69 6f 6e 20 | 65 6d 61 69 6c 20 4e 65 | Vision |email Ne|
|00000ba0| 74 77 6f 72 6b 29 20 4c | 69 73 74 73 65 72 76 65 |twork) L|istserve|
|00000bb0| 72 20 74 6f 20 61 6e 79 | 20 6f 66 20 73 65 76 65 |r to any| of seve|
|00000bc0| 72 61 6c 20 66 6f 72 6d | 61 74 73 2c 20 6f 72 20 |ral form|ats, or |
|00000bd0| 79 6f 75 20 63 61 6e 20 | 64 65 66 69 6e 65 20 79 |you can |define y|
|00000be0| 6f 75 72 20 6f 77 6e 2e | 0d 0d 4d 65 61 73 75 72 |our own.|..Measur|
|00000bf0| 65 4d 54 46 20 6d 65 61 | 73 75 72 65 73 20 79 6f |eMTF mea|sures yo|
|00000c00| 75 72 20 76 69 64 65 6f | 20 6d 6f 6e 69 74 6f 72 |ur video| monitor|
|00000c10| 27 73 20 4d 6f 64 75 6c | 61 74 69 6f 6e 20 54 72 |'s Modul|ation Tr|
|00000c20| 61 6e 73 66 65 72 20 46 | 75 6e 63 74 69 6f 6e 2c |ansfer F|unction,|
|00000c30| 20 69 2e 65 2e 20 63 6f | 6e 74 72 61 73 74 20 67 | i.e. co|ntrast g|
|00000c40| 61 69 6e 20 61 73 20 61 | 20 66 75 6e 63 74 69 6f |ain as a| functio|
|00000c50| 6e 20 6f 66 20 73 70 61 | 74 69 61 6c 20 66 72 65 |n of spa|tial fre|
|00000c60| 71 75 65 6e 63 79 2e 0d | 0d 51 75 69 63 6b 33 20 |quency..|.Quick3 |
|00000c70| 69 73 20 61 20 73 65 74 | 20 6f 66 20 73 75 62 72 |is a set| of subr|
|00000c80| 6f 75 74 69 6e 65 73 20 | 61 6e 64 20 61 20 6d 61 |outines |and a ma|
|00000c90| 69 6e 20 70 72 6f 67 72 | 61 6d 20 74 6f 20 66 69 |in progr|am to fi|
|00000ca0| 74 20 70 73 79 63 68 6f | 6d 65 74 72 69 63 20 66 |t psycho|metric f|
|00000cb0| 75 6e 63 74 69 6f 6e 73 | 2e 20 53 65 65 3a 20 0d |unctions|. See: .|
|00000cc0| 57 61 74 73 6f 6e 2c 20 | 41 2e 20 42 2e 20 28 31 |Watson, |A. B. (1|
|00000cd0| 39 37 39 29 20 50 72 6f | 62 61 62 69 6c 69 74 79 |979) Pro|bability|
|00000ce0| 20 73 75 6d 6d 61 74 69 | 6f 6e 20 6f 76 65 72 20 | summati|on over |
|00000cf0| 74 69 6d 65 2e 20 56 69 | 73 69 6f 6e 20 52 65 73 |time. Vi|sion Res|
|00000d00| 2c 20 31 39 2c 20 35 31 | 35 2d 32 32 2e 0d 57 61 |, 19, 51|5-22..Wa|
|00000d10| 74 73 6f 6e 2c 20 41 2e | 20 42 2e 20 61 6e 64 20 |tson, A.| B. and |
|00000d20| 50 65 6c 6c 69 2c 20 44 | 2e 20 47 2e 20 28 31 39 |Pelli, D|. G. (19|
|00000d30| 38 33 29 20 51 55 45 53 | 54 3a 20 61 20 42 61 79 |83) QUES|T: a Bay|
|00000d40| 65 73 69 61 6e 20 61 64 | 61 70 74 69 76 65 20 70 |esian ad|aptive p|
|00000d50| 73 79 63 68 6f 6d 65 74 | 72 69 63 20 6d 65 74 68 |sychomet|ric meth|
|00000d60| 6f 64 2e 20 50 65 72 63 | 65 70 74 20 50 73 79 63 |od. Perc|ept Psyc|
|00000d70| 68 6f 70 68 79 73 2c 20 | 33 33 20 28 32 29 2c 20 |hophys, |33 (2), |
|00000d80| 31 31 33 2d 32 30 2e 0d | 0d 54 68 65 20 43 72 69 |113-20..|.The Cri|
|00000d90| 63 6b 65 74 47 72 61 70 | 68 20 66 69 6c 65 73 20 |cketGrap|h files |
|00000da0| 61 72 65 20 66 6f 72 6d | 61 74 20 66 69 6c 65 73 |are form|at files|
|00000db0| 20 74 68 61 74 20 73 68 | 6f 75 6c 64 20 62 65 20 | that sh|ould be |
|00000dc0| 6d 6f 76 65 64 20 69 6e | 74 6f 20 74 68 65 20 66 |moved in|to the f|
|00000dd0| 6f 6c 64 65 72 20 69 6e | 20 77 68 69 63 68 20 79 |older in| which y|
|00000de0| 6f 75 72 20 43 72 69 63 | 6b 65 74 47 72 61 70 68 |our Cric|ketGraph|
|00000df0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 72 65 73 | applica|tion res|
|00000e00| 69 64 65 73 2e 20 57 68 | 65 6e 20 79 6f 75 20 73 |ides. Wh|en you s|
|00000e10| 74 61 72 74 20 75 70 20 | 43 72 69 63 6b 65 74 47 |tart up |CricketG|
|00000e20| 72 61 70 68 20 69 74 20 | 77 69 6c 6c 20 66 69 6e |raph it |will fin|
|00000e30| 64 20 61 6e 64 20 6c 6f | 61 64 20 61 6c 6c 20 74 |d and lo|ad all t|
|00000e40| 68 65 20 66 6f 72 6d 61 | 74 20 66 69 6c 65 73 2c |he forma|t files,|
|00000e50| 20 73 6f 20 74 68 61 74 | 20 6c 61 74 65 72 2c 20 | so that| later, |
|00000e60| 77 68 65 6e 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |when you| want to|
|00000e70| 20 70 6c 6f 74 20 64 61 | 74 61 2c 20 74 68 65 73 | plot da|ta, thes|
|00000e80| 65 20 66 6f 72 6d 61 74 | 73 20 77 69 6c 6c 20 62 |e format|s will b|
|00000e90| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 43 |e availa|ble in C|
|00000ea0| 72 69 63 6b 65 74 47 72 | 61 70 68 27 73 20 46 6f |ricketGr|aph's Fo|
|00000eb0| 72 6d 61 74 20 6d 65 6e | 75 2e 20 28 53 6f 72 72 |rmat men|u. (Sorr|
|00000ec0| 79 2c 20 74 68 65 79 20 | 64 6f 6e 27 74 20 77 6f |y, they |don't wo|
|00000ed0| 72 6b 20 77 69 74 68 20 | 74 68 65 20 6e 65 77 20 |rk with |the new |
|00000ee0| 43 72 69 63 6b 65 74 47 | 72 61 70 68 20 49 49 49 |CricketG|raph III|
|00000ef0| 2e 29 0d 0d 47 65 74 56 | 69 64 65 6f 44 72 69 76 |.)..GetV|ideoDriv|
|00000f00| 65 72 73 20 61 6e 64 20 | 47 65 74 53 6c 6f 74 44 |ers and |GetSlotD|
|00000f10| 72 69 76 65 72 73 20 63 | 6f 70 79 20 61 6c 6c 20 |rivers c|opy all |
|00000f20| 64 72 69 76 65 72 73 20 | 69 6e 74 6f 20 72 65 73 |drivers |into res|
|00000f30| 6f 75 72 63 65 20 66 69 | 6c 65 73 2c 20 66 6f 72 |ource fi|les, for|
|00000f40| 20 73 75 62 73 65 71 75 | 65 6e 74 20 70 65 72 75 | subsequ|ent peru|
|00000f50| 73 61 6c 20 69 6e 20 52 | 65 73 45 64 69 74 2c 20 |sal in R|esEdit, |
|00000f60| 69 6e 20 63 61 73 65 20 | 79 6f 75 20 77 61 6e 74 |in case |you want|
|00000f70| 20 74 6f 20 65 6e 68 61 | 6e 63 65 20 53 65 74 45 | to enha|nce SetE|
|00000f80| 6e 74 72 69 65 73 51 75 | 69 63 6b 6c 79 20 74 6f |ntriesQu|ickly to|
|00000f90| 20 73 75 70 70 6f 72 74 | 20 61 20 6e 65 77 20 76 | support| a new v|
|00000fa0| 69 64 65 6f 20 64 65 76 | 69 63 65 2e 20 54 68 69 |ideo dev|ice. Thi|
|00000fb0| 73 20 69 73 20 64 69 73 | 63 75 73 73 65 64 20 69 |s is dis|cussed i|
|00000fc0| 6e 20 74 68 65 20 22 56 | 69 64 65 6f 20 73 79 6e |n the "V|ideo syn|
|00000fd0| 63 68 22 20 66 69 6c 65 | 2e 0d 0d 43 4f 4e 54 45 |ch" file|...CONTE|
|00000fe0| 4e 54 53 20 4f 46 20 56 | 69 64 65 6f 54 6f 6f 6c |NTS OF V|ideoTool|
|00000ff0| 62 6f 78 53 6f 75 72 63 | 65 73 20 46 4f 4c 44 45 |boxSourc|es FOLDE|
|00001000| 52 3a 0d 0d 41 73 73 69 | 67 6e 2e 63 20 69 73 20 |R:..Assi|gn.c is |
|00001010| 61 20 70 6f 72 74 61 62 | 6c 65 20 72 75 6e 74 69 |a portab|le runti|
|00001020| 6d 65 20 43 20 69 6e 74 | 65 72 70 72 65 74 65 72 |me C int|erpreter|
|00001030| 20 74 68 61 74 20 72 65 | 61 64 73 20 61 6e 64 20 | that re|ads and |
|00001040| 65 78 65 63 75 74 65 73 | 20 61 6e 79 20 74 65 78 |executes| any tex|
|00001050| 74 20 22 61 73 73 69 67 | 6e 6d 65 6e 74 22 20 66 |t "assig|nment" f|
|00001060| 69 6c 65 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |ile that| contain|
|00001070| 73 20 6f 6e 6c 79 20 43 | 20 61 73 73 69 67 6e 6d |s only C| assignm|
|00001080| 65 6e 74 73 20 61 6e 64 | 20 63 6f 6d 6d 65 6e 74 |ents and| comment|
|00001090| 73 2c 20 65 2e 67 2e 0d | 09 76 69 65 77 69 6e 67 |s, e.g..|.viewing|
|000010a0| 44 69 73 74 61 6e 63 65 | 3d 35 37 2e 30 3b 09 2f |Distance|=57.0;./|
|000010b0| 2a 20 69 6e 63 68 65 73 | 20 2a 2f 0d 49 74 20 75 |* inches| */.It u|
|000010c0| 73 65 73 20 61 6e 20 61 | 72 72 61 79 20 6f 66 20 |ses an a|rray of |
|000010d0| 22 44 65 73 63 72 69 70 | 74 69 6f 6e 22 20 73 74 |"Descrip|tion" st|
|000010e0| 72 75 63 74 75 72 65 73 | 20 74 6f 20 61 73 73 6f |ructures| to asso|
|000010f0| 63 69 61 74 65 20 65 61 | 63 68 20 6e 61 6d 65 20 |ciate ea|ch name |
|00001100| 69 6e 20 74 68 65 20 61 | 73 73 69 67 6e 6d 65 6e |in the a|ssignmen|
|00001110| 74 20 66 69 6c 65 20 77 | 69 74 68 20 61 20 72 75 |t file w|ith a ru|
|00001120| 6e 74 69 6d 65 20 43 20 | 76 61 72 69 61 62 6c 65 |ntime C |variable|
|00001130| 2e 20 49 74 20 63 61 6e | 20 61 6c 73 6f 20 77 72 |. It can| also wr|
|00001140| 69 74 65 20 61 6e 20 61 | 73 73 69 67 6e 6d 65 6e |ite an a|ssignmen|
|00001150| 74 20 66 69 6c 65 2c 20 | 6d 61 6b 69 6e 67 20 74 |t file, |making t|
|00001160| 68 65 20 61 73 73 69 67 | 6e 6d 65 6e 74 20 66 69 |he assig|nment fi|
|00001170| 6c 65 20 61 20 70 6f 72 | 74 61 62 6c 65 20 77 61 |le a por|table wa|
|00001180| 79 20 6f 66 20 77 72 69 | 74 69 6e 67 20 61 6e 64 |y of wri|ting and|
|00001190| 20 72 65 61 64 69 6e 67 | 20 63 61 6c 69 62 72 61 | reading| calibra|
|000011a0| 74 69 6f 6e 73 20 61 6e | 64 20 65 78 70 65 72 69 |tions an|d experi|
|000011b0| 6d 65 6e 74 61 6c 20 70 | 61 72 61 6d 65 74 65 72 |mental p|arameter|
|000011c0| 73 2e 20 41 72 72 61 79 | 73 20 63 61 6e 20 62 65 |s. Array|s can be|
|000011d0| 20 61 6c 6c 6f 63 61 74 | 65 64 20 64 79 6e 61 6d | allocat|ed dynam|
|000011e0| 69 63 61 6c 6c 79 2c 20 | 61 75 74 6f 6d 61 74 69 |ically, |automati|
|000011f0| 63 61 6c 6c 79 20 64 69 | 6d 65 6e 73 69 6f 6e 65 |cally di|mensione|
|00001200| 64 20 73 6f 20 61 73 20 | 74 6f 20 68 6f 6c 64 20 |d so as |to hold |
|00001210| 61 6c 6c 20 74 68 65 20 | 61 73 73 69 67 6e 6d 65 |all the |assignme|
|00001220| 6e 74 73 20 69 6e 20 61 | 6e 79 20 70 61 72 74 20 |nts in a|ny part |
|00001230| 6f 66 20 74 68 65 20 61 | 73 73 69 67 6e 6d 65 6e |of the a|ssignmen|
|00001240| 74 20 66 69 6c 65 2e 20 | 50 72 6f 67 72 61 6d 73 |t file. |Programs|
|00001250| 20 77 72 69 74 74 65 6e | 20 62 65 66 6f 72 65 20 | written| before |
|00001260| 31 39 39 33 2c 20 75 73 | 69 6e 67 20 74 68 65 20 |1993, us|ing the |
|00001270| 6f 6c 64 20 52 65 61 64 | 41 73 73 69 67 6e 6d 65 |old Read|Assignme|
|00001280| 6e 74 73 2e 63 20 28 73 | 75 70 65 72 63 65 64 65 |nts.c (s|upercede|
|00001290| 64 20 62 79 20 41 73 73 | 69 67 6e 2e 63 29 2c 20 |d by Ass|ign.c), |
|000012a0| 6d 61 79 20 69 6e 63 6c | 75 64 65 20 74 68 65 20 |may incl|ude the |
|000012b0| 68 65 61 64 65 72 20 66 | 69 6c 65 20 41 73 73 69 |header f|ile Assi|
|000012c0| 67 6e 39 32 2e 68 20 74 | 6f 20 6d 69 6e 69 6d 69 |gn92.h t|o minimi|
|000012d0| 7a 65 20 74 68 65 20 65 | 66 66 6f 72 74 20 6f 66 |ze the e|ffort of|
|000012e0| 20 75 70 64 61 74 69 6e | 67 2e 0d 0d 42 69 6e 6f | updatin|g...Bino|
|000012f0| 6d 69 61 6c 2e 63 2c 20 | 67 69 76 65 6e 20 61 20 |mial.c, |given a |
|00001300| 62 69 6e 6f 6d 69 61 6c | 20 73 61 6d 70 6c 65 2c |binomial| sample,|
|00001310| 20 72 65 74 75 72 6e 73 | 20 61 20 63 6f 6e 66 69 | returns| a confi|
|00001320| 64 65 6e 63 65 20 69 6e | 74 65 72 76 61 6c 20 66 |dence in|terval f|
|00001330| 6f 72 20 74 68 65 20 75 | 6e 64 65 72 6c 79 69 6e |or the u|nderlyin|
|00001340| 67 20 62 69 6e 6f 6d 69 | 61 6c 20 70 72 6f 62 61 |g binomi|al proba|
|00001350| 62 69 6c 69 74 79 2e 0d | 0d 42 72 65 61 6b 4c 69 |bility..|.BreakLi|
|00001360| 6e 65 73 2e 63 20 74 61 | 6b 65 73 20 61 20 6c 6f |nes.c ta|kes a lo|
|00001370| 6e 67 20 43 20 73 74 72 | 69 6e 67 20 61 6e 64 20 |ng C str|ing and |
|00001380| 6a 75 64 69 63 69 6f 75 | 73 6c 79 20 63 68 61 6e |judiciou|sly chan|
|00001390| 67 65 73 20 73 70 61 63 | 65 73 20 74 6f 20 27 5c |ges spac|es to '\|
|000013a0| 6e 27 20 74 6f 20 79 69 | 65 6c 64 20 6c 69 6e 65 |n' to yi|eld line|
|000013b0| 73 20 73 68 6f 72 74 65 | 72 20 74 68 61 6e 20 61 |s shorte|r than a|
|000013c0| 20 73 70 65 63 69 66 69 | 65 64 20 6c 69 6e 65 4c | specifi|ed lineL|
|000013d0| 65 6e 67 74 68 2e 0d 0d | 43 61 72 64 53 6c 6f 74 |ength...|CardSlot|
|000013e0| 2e 63 20 66 69 6e 64 73 | 20 74 68 65 20 66 69 72 |.c finds| the fir|
|000013f0| 73 74 20 4e 75 42 75 73 | 20 73 6c 6f 74 20 74 68 |st NuBus| slot th|
|00001400| 61 74 20 63 6f 6e 74 61 | 69 6e 73 20 61 20 63 61 |at conta|ins a ca|
|00001410| 72 64 20 6f 66 20 74 68 | 65 20 67 69 76 65 6e 20 |rd of th|e given |
|00001420| 6e 61 6d 65 2e 20 52 65 | 74 75 72 6e 73 20 2d 31 |name. Re|turns -1|
|00001430| 20 69 66 20 74 68 65 72 | 65 27 73 20 6e 6f 20 73 | if ther|e's no s|
|00001440| 75 63 68 20 63 61 72 64 | 2e 0d 0d 43 65 6e 74 65 |uch card|...Cente|
|00001450| 72 52 65 63 74 49 6e 52 | 65 63 74 2e 63 2c 20 73 |rRectInR|ect.c, s|
|00001460| 68 69 66 74 73 20 74 68 | 65 20 66 69 72 73 74 20 |hifts th|e first |
|00001470| 72 65 63 74 20 74 6f 20 | 63 65 6e 74 65 72 20 69 |rect to |center i|
|00001480| 74 20 69 6e 20 74 68 65 | 20 73 65 63 6f 6e 64 2e |t in the| second.|
|00001490| 20 4f 66 66 73 65 74 52 | 65 63 74 54 69 6c 65 20 | OffsetR|ectTile |
|000014a0| 61 6e 64 20 49 73 52 65 | 63 74 49 6e 52 65 63 74 |and IsRe|ctInRect|
|000014b0| 20 61 72 65 20 74 72 69 | 76 69 61 6c 20 62 75 74 | are tri|vial but|
|000014c0| 20 68 61 6e 64 79 20 72 | 6f 75 74 69 6e 65 73 20 | handy r|outines |
|000014d0| 66 6f 72 20 70 6c 61 79 | 69 6e 67 20 77 69 74 68 |for play|ing with|
|000014e0| 20 72 65 63 74 73 2e 0d | 0d 43 68 69 53 71 75 61 | rects..|.ChiSqua|
|000014f0| 72 65 2e 63 2c 20 67 69 | 76 65 6e 20 61 20 73 61 |re.c, gi|ven a sa|
|00001500| 6d 70 6c 65 20 66 72 6f | 6d 20 61 20 63 68 69 20 |mple fro|m a chi |
|00001510| 73 71 75 61 72 65 20 64 | 69 73 74 72 69 62 75 74 |square d|istribut|
|00001520| 69 6f 6e 20 77 69 74 68 | 20 6e 20 64 65 67 72 65 |ion with| n degre|
|00001530| 65 73 20 6f 66 20 66 72 | 65 65 64 6f 6d 2c 20 72 |es of fr|eedom, r|
|00001540| 65 74 75 72 6e 73 20 74 | 68 65 20 73 69 67 6e 69 |eturns t|he signi|
|00001550| 66 69 63 61 6e 63 65 20 | 6c 65 76 65 6c 20 61 74 |ficance |level at|
|00001560| 20 77 68 69 63 68 20 61 | 20 66 69 74 20 6d 61 79 | which a| fit may|
|00001570| 20 62 65 20 72 65 6a 65 | 63 74 65 64 2e 0d 0d 43 | be reje|cted...C|
|00001580| 68 6f 6f 73 65 2e 63 2c | 20 75 73 65 73 20 74 68 |hoose.c,| uses th|
|00001590| 65 20 63 6f 6e 73 6f 6c | 65 20 74 6f 20 61 73 6b |e consol|e to ask|
|000015a0| 20 74 68 65 20 75 73 65 | 72 20 61 20 6d 75 6c 74 | the use|r a mult|
|000015b0| 69 70 6c 65 2d 63 68 6f | 69 63 65 20 71 75 65 73 |iple-cho|ice ques|
|000015c0| 74 69 6f 6e 2c 20 61 63 | 63 65 70 74 69 6e 67 20 |tion, ac|cepting |
|000015d0| 74 68 65 20 73 68 6f 72 | 74 65 73 74 20 75 6e 61 |the shor|test una|
|000015e0| 6d 62 69 67 75 6f 75 73 | 20 72 65 73 70 6f 6e 73 |mbiguous| respons|
|000015f0| 65 20 28 77 69 74 68 20 | 64 65 66 61 75 6c 74 29 |e (with |default)|
|00001600| 2c 20 61 6e 64 20 70 72 | 69 6e 74 69 6e 67 20 6f |, and pr|inting o|
|00001610| 75 74 20 74 68 65 20 77 | 68 6f 6c 65 20 63 68 6f |ut the w|hole cho|
|00001620| 69 63 65 2e 20 59 65 73 | 4f 72 4e 6f 28 29 20 61 |ice. Yes|OrNo() a|
|00001630| 6e 64 20 4d 75 6c 74 69 | 70 6c 65 43 68 6f 69 63 |nd Multi|pleChoic|
|00001640| 65 28 29 20 61 72 65 20 | 6f 62 73 6f 6c 65 74 65 |e() are |obsolete|
|00001650| 2c 20 62 75 74 20 72 65 | 74 61 69 6e 65 64 20 66 |, but re|tained f|
|00001660| 6f 72 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |or compa|tibility|
|00001670| 2e 0d 0d 43 68 6f 6f 73 | 65 53 63 72 65 65 6e 2e |...Choos|eScreen.|
|00001680| 63 20 61 73 6b 73 20 74 | 68 65 20 75 73 65 72 20 |c asks t|he user |
|00001690| 74 6f 20 73 65 6c 65 63 | 74 20 61 20 73 63 72 65 |to selec|t a scre|
|000016a0| 65 6e 2e 0d 0d 43 6f 6e | 76 6f 6c 76 65 58 2e 63 |en...Con|volveX.c|
|000016b0| 20 61 6e 64 20 43 6f 6e | 76 6f 6c 76 65 59 20 61 | and Con|volveY a|
|000016c0| 6c 6c 6f 77 20 63 6f 6e | 76 6f 6c 75 74 69 6f 6e |llow con|volution|
|000016d0| 2c 20 76 65 72 74 69 63 | 61 6c 6c 79 20 6f 72 20 |, vertic|ally or |
|000016e0| 68 6f 72 69 7a 6f 6e 74 | 61 6c 6c 79 2c 20 77 69 |horizont|ally, wi|
|000016f0| 74 68 20 61 6e 20 61 72 | 62 69 74 72 61 72 79 20 |th an ar|bitrary |
|00001700| 6f 6e 65 2d 64 69 6d 65 | 6e 73 69 6f 6e 61 6c 20 |one-dime|nsional |
|00001710| 70 6f 69 6e 74 20 73 70 | 72 65 61 64 20 66 75 6e |point sp|read fun|
|00001720| 63 74 69 6f 6e 2e 20 54 | 68 65 20 73 6f 75 72 63 |ction. T|he sourc|
|00001730| 65 20 61 6e 64 20 64 65 | 73 74 69 6e 61 74 69 6f |e and de|stinatio|
|00001740| 6e 20 50 69 78 6d 61 70 | 73 20 6d 61 79 20 62 65 |n Pixmap|s may be|
|00001750| 20 74 68 65 20 73 61 6d | 65 20 6f 72 20 64 69 66 | the sam|e or dif|
|00001760| 66 65 72 65 6e 74 2c 20 | 61 6e 64 20 6d 61 79 20 |ferent, |and may |
|00001770| 62 65 20 74 68 65 20 73 | 63 72 65 65 6e 2c 20 73 |be the s|creen, s|
|00001780| 6f 20 79 6f 75 20 63 61 | 6e 20 77 61 74 63 68 20 |o you ca|n watch |
|00001790| 69 74 20 68 61 70 70 65 | 6e 2e 20 54 72 79 20 74 |it happe|n. Try t|
|000017a0| 68 65 20 64 65 6d 6f 20 | 46 69 6c 74 65 72 2e 0d |he demo |Filter..|
|000017b0| 0d 43 6f 70 79 42 69 74 | 73 51 75 69 63 6b 6c 79 |.CopyBit|sQuickly|
|000017c0| 2e 63 20 69 73 20 61 20 | 64 75 6d 62 20 73 75 62 |.c is a |dumb sub|
|000017d0| 73 74 69 74 75 74 65 20 | 66 6f 72 20 43 6f 70 79 |stitute |for Copy|
|000017e0| 42 69 74 73 20 74 68 61 | 74 20 69 67 6e 6f 72 65 |Bits tha|t ignore|
|000017f0| 73 20 74 68 65 20 63 6f | 6c 6f 72 20 74 61 62 6c |s the co|lor tabl|
|00001800| 65 73 20 61 6e 64 20 70 | 61 6c 65 74 74 65 73 2c |es and p|alettes,|
|00001810| 20 73 69 6d 70 6c 79 20 | 63 6f 70 79 69 6e 67 20 | simply |copying |
|00001820| 70 69 78 65 6c 73 20 77 | 69 74 68 6f 75 74 20 61 |pixels w|ithout a|
|00001830| 6e 79 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 2e 20 |ny trans|lation. |
|00001840| 49 74 27 73 20 66 6f 72 | 20 64 6f 69 6e 67 20 61 |It's for| doing a|
|00001850| 6e 69 6d 61 74 69 6f 6e | 73 2e 20 42 65 73 69 64 |nimation|s. Besid|
|00001860| 65 73 20 63 6f 70 79 69 | 6e 67 20 69 6d 61 67 65 |es copyi|ng image|
|00001870| 73 2c 20 69 74 20 63 61 | 6e 20 61 6c 73 6f 20 61 |s, it ca|n also a|
|00001880| 64 64 20 6f 72 20 6d 75 | 6c 74 69 70 6c 79 20 74 |dd or mu|ltiply t|
|00001890| 68 65 6d 2e 20 41 74 20 | 6f 6e 65 20 74 69 6d 65 |hem. At |one time|
|000018a0| 20 69 74 20 77 61 73 20 | 6d 75 63 68 20 66 61 73 | it was |much fas|
|000018b0| 74 65 72 20 74 68 61 6e | 20 43 6f 70 79 42 69 74 |ter than| CopyBit|
|000018c0| 73 2c 20 62 75 74 20 74 | 68 65 20 6c 61 74 65 73 |s, but t|he lates|
|000018d0| 74 20 74 69 6d 69 6e 67 | 20 28 75 6e 64 65 72 20 |t timing| (under |
|000018e0| 53 79 73 74 65 6d 20 37 | 29 2c 20 62 79 20 54 69 |System 7|), by Ti|
|000018f0| 6d 65 56 69 64 65 6f 2c | 20 69 6e 64 69 63 61 74 |meVideo,| indicat|
|00001900| 65 73 20 74 68 61 74 20 | 43 6f 70 79 42 69 74 73 |es that |CopyBits|
|00001910| 20 69 73 20 6e 6f 77 20 | 61 62 6f 75 74 20 61 73 | is now |about as|
|00001920| 20 66 61 73 74 20 61 73 | 20 43 6f 70 79 42 69 74 | fast as| CopyBit|
|00001930| 73 51 75 69 63 6b 6c 79 | 2e 20 4d 6f 73 74 20 75 |sQuickly|. Most u|
|00001940| 73 65 72 73 20 77 69 6c | 6c 20 70 72 65 66 65 72 |sers wil|l prefer|
|00001950| 20 74 6f 20 63 61 6c 6c | 20 74 68 65 20 68 69 67 | to call| the hig|
|00001960| 68 2d 6c 65 76 65 6c 20 | 43 6f 70 79 57 69 6e 64 |h-level |CopyWind|
|00001970| 6f 77 73 2e 20 54 72 79 | 20 74 68 65 20 64 65 6d |ows. Try| the dem|
|00001980| 6f 20 53 61 6e 64 73 74 | 6f 72 6d 2e 0d 0d 43 6f |o Sandst|orm...Co|
|00001990| 70 79 51 75 69 63 6b 44 | 72 61 77 47 6c 6f 62 61 |pyQuickD|rawGloba|
|000019a0| 6c 73 2e 63 20 61 6c 6c | 6f 77 73 20 54 48 49 4e |ls.c all|ows THIN|
|000019b0| 4b 20 43 20 70 72 6f 67 | 72 61 6d 73 20 74 68 61 |K C prog|rams tha|
|000019c0| 74 20 75 73 65 20 62 6f | 74 68 20 74 68 65 20 63 |t use bo|th the c|
|000019d0| 6f 6e 73 6f 6c 65 20 61 | 6e 64 20 4d 61 63 54 72 |onsole a|nd MacTr|
|000019e0| 61 70 73 20 74 6f 20 61 | 63 63 65 73 73 20 74 68 |aps to a|ccess th|
|000019f0| 65 20 71 64 20 67 6c 6f | 62 61 6c 20 73 74 72 75 |e qd glo|bal stru|
|00001a00| 63 74 75 72 65 2e 0d 0d | 43 6f 70 79 57 69 6e 64 |cture...|CopyWind|
|00001a10| 6f 77 73 2e 63 20 70 72 | 6f 76 69 64 65 73 20 61 |ows.c pr|ovides a|
|00001a20| 20 68 69 67 68 2d 6c 65 | 76 65 6c 20 69 6e 74 65 | high-le|vel inte|
|00001a30| 72 66 61 63 65 20 74 6f | 20 43 6f 70 79 42 69 74 |rface to| CopyBit|
|00001a40| 73 20 61 6e 64 20 43 6f | 70 79 42 69 74 73 51 75 |s and Co|pyBitsQu|
|00001a50| 69 63 6b 6c 79 2c 20 61 | 63 63 65 70 74 69 6e 67 |ickly, a|ccepting|
|00001a60| 20 77 69 6e 64 6f 77 73 | 20 28 57 69 6e 64 6f 77 | windows| (Window|
|00001a70| 50 74 72 2c 20 43 57 69 | 6e 64 6f 77 50 74 72 2c |Ptr, CWi|ndowPtr,|
|00001a80| 20 6f 72 20 47 57 6f 72 | 6c 64 50 74 72 29 20 69 | or GWor|ldPtr) i|
|00001a90| 6e 73 74 65 61 64 20 6f | 66 20 70 69 78 6d 61 70 |nstead o|f pixmap|
|00001aa0| 73 20 6f 72 20 62 69 74 | 6d 61 70 73 2e 20 49 74 |s or bit|maps. It|
|00001ab0| 20 61 63 63 65 70 74 73 | 20 74 77 6f 20 77 69 6e | accepts| two win|
|00001ac0| 64 6f 77 73 2c 20 73 6f | 75 72 63 65 20 61 6e 64 |dows, so|urce and|
|00001ad0| 20 64 65 73 74 69 6e 61 | 74 69 6f 6e 2c 20 66 69 | destina|tion, fi|
|00001ae0| 67 75 72 65 73 20 6f 75 | 74 20 77 68 65 72 65 20 |gures ou|t where |
|00001af0| 74 68 65 20 61 73 73 6f | 63 69 61 74 65 64 20 50 |the asso|ciated P|
|00001b00| 69 78 2f 42 69 74 4d 61 | 70 73 20 61 72 65 2c 20 |ix/BitMa|ps are, |
|00001b10| 61 6e 64 20 63 61 6c 6c | 73 20 43 6f 70 79 42 69 |and call|s CopyBi|
|00001b20| 74 73 20 6f 72 20 43 6f | 70 79 42 69 74 73 51 75 |ts or Co|pyBitsQu|
|00001b30| 69 63 6b 6c 79 2c 20 61 | 66 74 65 72 20 6d 61 6b |ickly, a|fter mak|
|00001b40| 69 6e 67 20 61 6c 6c 20 | 74 68 65 20 61 70 70 72 |ing all |the appr|
|00001b50| 6f 70 72 69 61 74 65 20 | 69 6e 63 61 6e 74 61 74 |opriate |incantat|
|00001b60| 69 6f 6e 73 20 74 6f 20 | 67 65 74 20 74 68 65 20 |ions to |get the |
|00001b70| 64 65 73 69 72 65 64 20 | 72 65 73 75 6c 74 73 2e |desired |results.|
|00001b80| 20 48 49 47 48 4c 59 20 | 52 45 43 4f 4d 4d 45 4e | HIGHLY |RECOMMEN|
|00001b90| 44 45 44 21 0d 0d 44 61 | 74 65 64 53 74 72 69 6e |DED!..Da|tedStrin|
|00001ba0| 67 2e 63 20 63 72 65 61 | 74 65 73 20 61 20 75 6e |g.c crea|tes a un|
|00001bb0| 69 71 75 65 20 73 74 72 | 69 6e 67 20 72 65 70 72 |ique str|ing repr|
|00001bc0| 65 73 65 6e 74 69 6e 67 | 20 74 68 65 20 64 61 74 |esenting| the dat|
|00001bd0| 65 20 61 6e 64 20 74 69 | 6d 65 2c 20 73 75 69 74 |e and ti|me, suit|
|00001be0| 61 62 6c 65 20 61 73 20 | 61 6e 20 65 78 74 65 6e |able as |an exten|
|00001bf0| 73 69 6f 6e 20 66 6f 72 | 20 61 20 64 61 74 61 20 |sion for| a data |
|00001c00| 66 69 6c 65 20 6e 61 6d | 65 2e 0d 0d 44 72 61 77 |file nam|e...Draw|
|00001c10| 50 72 69 6e 74 66 2e 63 | 20 64 6f 65 73 20 61 20 |Printf.c| does a |
|00001c20| 73 70 72 69 6e 74 66 20 | 61 6e 64 20 64 72 61 77 |sprintf |and draw|
|00001c30| 73 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 73 |s the ch|aracters|
|00001c40| 20 69 6e 74 6f 20 74 68 | 65 20 63 75 72 72 65 6e | into th|e curren|
|00001c50| 74 20 70 6f 72 74 2c 20 | 75 73 69 6e 67 20 74 68 |t port, |using th|
|00001c60| 65 20 63 75 72 72 65 6e | 74 20 66 6f 6e 74 20 65 |e curren|t font e|
|00001c70| 74 63 2e 20 54 72 79 20 | 74 68 65 20 64 65 6d 6f |tc. Try |the demo|
|00001c80| 20 54 65 73 74 47 44 56 | 69 64 65 6f 2e 0d 0d 66 | TestGDV|ideo...f|
|00001c90| 66 70 72 69 6e 74 66 2e | 63 20 70 72 69 6e 74 73 |fprintf.|c prints|
|00001ca0| 20 74 6f 20 74 77 6f 20 | 6f 75 74 70 75 74 20 73 | to two |output s|
|00001cb0| 74 72 65 61 6d 73 2c 20 | 75 73 75 61 6c 6c 79 20 |treams, |usually |
|00001cc0| 73 74 64 6f 75 74 20 61 | 6e 64 20 61 20 66 69 6c |stdout a|nd a fil|
|00001cd0| 65 2e 20 49 74 20 61 6c | 73 6f 20 73 61 76 65 73 |e. It al|so saves|
|00001ce0| 20 61 6e 64 20 72 65 73 | 74 6f 72 65 73 20 74 68 | and res|tores th|
|00001cf0| 65 20 70 6f 72 74 20 61 | 6e 64 20 47 44 65 76 69 |e port a|nd GDevi|
|00001d00| 63 65 2e 0d 0d 46 6c 75 | 73 68 43 61 63 68 65 52 |ce...Flu|shCacheR|
|00001d10| 61 6e 67 65 2e 63 2c 20 | 66 72 6f 6d 20 41 70 70 |ange.c, |from App|
|00001d20| 6c 65 2c 20 70 72 6f 76 | 69 64 65 73 20 61 20 22 |le, prov|ides a "|
|00001d30| 6d 61 63 68 69 6e 65 2d | 69 6e 64 65 70 65 6e 64 |machine-|independ|
|00001d40| 65 6e 74 22 20 77 61 79 | 20 6f 66 20 66 6c 75 73 |ent" way| of flus|
|00001d50| 68 69 6e 67 20 79 6f 75 | 72 20 70 72 6f 63 65 73 |hing you|r proces|
|00001d60| 73 6f 72 27 73 20 69 6e | 73 74 72 75 63 74 69 6f |sor's in|structio|
|00001d70| 6e 20 61 6e 64 20 64 61 | 74 61 20 63 61 63 68 65 |n and da|ta cache|
|00001d80| 73 2e 20 43 61 6e 6e 6f | 74 20 63 75 72 72 65 6e |s. Canno|t curren|
|00001d90| 74 6c 79 20 62 65 20 63 | 6f 6d 70 69 6c 65 64 20 |tly be c|ompiled |
|00001da0| 74 6f 20 72 75 6e 20 6e | 61 74 69 76 65 20 6f 6e |to run n|ative on|
|00001db0| 20 50 6f 77 65 72 50 43 | 2e 0d 0d 66 70 2e 63 20 | PowerPC|...fp.c |
|00001dc0| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 70 72 6f 76 |temporar|ily prov|
|00001dd0| 69 64 65 73 20 73 6f 6d | 65 20 66 75 6e 63 74 69 |ides som|e functi|
|00001de0| 6f 6e 73 20 66 6f 72 20 | 74 68 65 20 36 38 6b 20 |ons for |the 68k |
|00001df0| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 20 74 68 |equivale|nt to th|
|00001e00| 6f 73 65 20 64 65 66 69 | 6e 65 64 20 62 79 20 41 |ose defi|ned by A|
|00001e10| 70 70 6c 65 20 69 6e 20 | 66 70 2e 68 20 66 6f 72 |pple in |fp.h for|
|00001e20| 20 74 68 65 20 50 6f 77 | 65 72 50 43 2e 20 6c 64 | the Pow|erPC. ld|
|00001e30| 74 6f 78 38 30 28 26 78 | 6c 2c 26 78 38 30 29 20 |tox80(&x|l,&x80) |
|00001e40| 63 6f 6e 76 65 72 74 73 | 20 6c 6f 6e 67 20 64 6f |converts| long do|
|00001e50| 75 62 6c 65 20 74 6f 20 | 65 78 74 65 6e 64 65 64 |uble to |extended|
|00001e60| 38 30 20 28 69 2e 65 2e | 20 31 30 2d 62 79 74 65 |80 (i.e.| 10-byte|
|00001e70| 20 64 6f 75 62 6c 65 29 | 2e 20 78 38 30 74 6f 6c | double)|. x80tol|
|00001e80| 64 28 26 78 38 30 2c 26 | 78 6c 29 20 63 6f 6e 76 |d(&x80,&|xl) conv|
|00001e90| 65 72 74 73 20 65 78 74 | 65 6e 64 65 64 38 30 20 |erts ext|ended80 |
|00001ea0| 74 6f 20 6c 6f 6e 67 20 | 64 6f 75 62 6c 65 2e 20 |to long |double. |
|00001eb0| 66 70 63 6c 61 73 73 69 | 66 79 28 78 29 20 74 65 |fpclassi|fy(x) te|
|00001ec0| 6c 6c 73 20 79 6f 75 20 | 77 68 65 74 68 65 72 20 |lls you |whether |
|00001ed0| 61 20 64 6f 75 62 6c 65 | 20 69 73 20 61 20 4e 41 |a double| is a NA|
|00001ee0| 4e 2c 20 49 4e 46 2c 20 | 65 74 63 2e 0d 0d 47 44 |N, INF, |etc...GD|
|00001ef0| 49 6e 66 6f 2e 63 20 61 | 6e 64 20 47 44 49 6e 66 |Info.c a|nd GDInf|
|00001f00| 6f 54 69 6d 65 20 66 69 | 6c 6c 20 74 68 65 20 75 |oTime fi|ll the u|
|00001f10| 73 65 72 2d 73 75 70 70 | 6c 69 65 64 20 56 69 64 |ser-supp|lied Vid|
|00001f20| 65 6f 49 6e 66 6f 20 72 | 65 63 6f 72 64 20 77 69 |eoInfo r|ecord wi|
|00001f30| 74 68 20 64 65 73 63 72 | 69 70 74 69 76 65 20 69 |th descr|iptive i|
|00001f40| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00001f50| 20 74 68 65 20 76 69 64 | 65 6f 20 64 65 76 69 63 | the vid|eo devic|
|00001f60| 65 2e 0d 0d 47 44 49 6e | 66 6f 2e 68 20 69 73 20 |e...GDIn|fo.h is |
|00001f70| 61 20 68 65 61 64 65 72 | 20 66 69 6c 65 20 74 68 |a header| file th|
|00001f80| 61 74 20 64 65 66 69 6e | 65 73 20 74 68 65 20 56 |at defin|es the V|
|00001f90| 69 64 65 6f 49 6e 66 6f | 20 73 74 72 75 63 74 75 |ideoInfo| structu|
|00001fa0| 72 65 20 75 73 65 64 20 | 62 79 20 47 44 49 6e 66 |re used |by GDInf|
|00001fb0| 6f 2e 63 2c 20 47 44 54 | 65 73 74 43 6c 75 74 2e |o.c, GDT|estClut.|
|00001fc0| 63 2c 20 61 6e 64 20 54 | 69 6d 65 56 69 64 65 6f |c, and T|imeVideo|
|00001fd0| 2e 63 2e 0d 0d 47 44 4f | 70 65 6e 57 69 6e 64 6f |.c...GDO|penWindo|
|00001fe0| 77 2e 63 20 6f 70 65 6e | 73 20 61 20 66 75 6c 6c |w.c open|s a full|
|00001ff0| 20 73 63 72 65 65 6e 20 | 63 6f 6c 6f 72 20 77 69 | screen |color wi|
|00002000| 6e 64 6f 77 20 77 69 74 | 68 20 61 6e 20 65 78 70 |ndow wit|h an exp|
|00002010| 6c 69 63 69 74 20 70 61 | 6c 65 74 74 65 20 6f 6e |licit pa|lette on|
|00002020| 20 61 6e 20 61 72 62 69 | 74 72 61 72 79 20 73 63 | an arbi|trary sc|
|00002030| 72 65 65 6e 20 2e 20 47 | 44 44 69 73 70 6f 73 65 |reen . G|DDispose|
|00002040| 57 69 6e 64 6f 77 28 29 | 20 63 6c 6f 73 65 73 20 |Window()| closes |
|00002050| 74 68 65 20 77 69 6e 64 | 6f 77 20 61 6e 64 20 72 |the wind|ow and r|
|00002060| 65 73 74 6f 72 65 73 20 | 74 68 65 20 73 63 72 65 |estores |the scre|
|00002070| 65 6e 27 73 20 63 6c 75 | 74 2e 20 41 64 64 45 78 |en's clu|t. AddEx|
|00002080| 70 6c 69 63 69 74 50 61 | 6c 65 74 74 65 28 29 20 |plicitPa|lette() |
|00002090| 61 64 64 73 20 61 20 70 | 61 6c 65 74 74 65 20 77 |adds a p|alette w|
|000020a0| 69 74 68 20 61 6c 6c 20 | 63 6f 6c 6f 72 73 20 6d |ith all |colors m|
|000020b0| 61 72 6b 65 64 20 65 78 | 70 6c 69 63 69 74 20 74 |arked ex|plicit t|
|000020c0| 6f 20 61 6e 79 20 63 6f | 6c 6f 72 20 77 69 6e 64 |o any co|lor wind|
|000020d0| 6f 77 20 6f 72 20 47 57 | 6f 72 6c 64 2c 20 61 6c |ow or GW|orld, al|
|000020e0| 6c 6f 77 69 6e 67 20 79 | 6f 75 20 74 6f 20 75 73 |lowing y|ou to us|
|000020f0| 65 20 50 6d 46 6f 72 65 | 43 6f 6c 6f 72 20 6f 72 |e PmFore|Color or|
|00002100| 20 50 6d 42 61 63 6b 43 | 6f 6c 6f 72 20 74 6f 20 | PmBackC|olor to |
|00002110| 64 65 73 69 67 6e 61 74 | 65 20 74 68 65 20 6e 75 |designat|e the nu|
|00002120| 6d 62 65 72 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |mber you| want to|
|00002130| 20 73 65 74 20 70 69 78 | 65 6c 73 20 74 6f 20 77 | set pix|els to w|
|00002140| 68 65 6e 20 79 6f 75 20 | 75 73 65 20 51 75 69 63 |hen you |use Quic|
|00002150| 6b 44 72 61 77 20 6f 70 | 65 72 61 74 69 6f 6e 73 |kDraw op|erations|
|00002160| 20 6c 69 6b 65 20 45 72 | 61 73 65 52 65 63 74 20 | like Er|aseRect |
|00002170| 61 6e 64 20 44 72 61 77 | 54 65 78 74 2e 20 52 65 |and Draw|Text. Re|
|00002180| 6d 6f 76 65 50 61 6c 65 | 74 74 65 20 64 69 73 70 |movePale|tte disp|
|00002190| 6f 73 65 73 20 6f 66 20 | 74 68 65 20 70 61 6c 65 |oses of |the pale|
|000021a0| 74 74 65 2e 20 47 65 74 | 42 69 74 4d 61 70 50 74 |tte. Get|BitMapPt|
|000021b0| 72 28 77 69 6e 64 6f 77 | 29 20 72 65 74 75 72 6e |r(window|) return|
|000021c0| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |s a poin|ter to t|
|000021d0| 68 65 20 77 69 6e 64 6f | 77 27 73 20 62 69 74 6d |he windo|w's bitm|
|000021e0| 61 70 20 6f 72 20 70 69 | 78 6d 61 70 2e 20 49 73 |ap or pi|xmap. Is|
|000021f0| 47 57 6f 72 6c 64 50 74 | 72 28 77 69 6e 64 6f 77 |GWorldPt|r(window|
|00002200| 29 20 72 65 74 75 72 6e | 73 20 74 72 75 65 20 6f |) return|s true o|
|00002210| 6e 6c 79 20 69 66 20 77 | 69 6e 64 6f 77 20 69 73 |nly if w|indow is|
|00002220| 20 61 20 47 57 6f 72 6c | 64 50 74 72 2e 20 49 73 | a GWorl|dPtr. Is|
|00002230| 47 72 61 66 50 74 72 28 | 77 69 6e 64 6f 77 29 20 |GrafPtr(|window) |
|00002240| 72 65 74 75 72 6e 73 20 | 74 72 75 65 20 6f 6e 6c |returns |true onl|
|00002250| 79 20 69 66 20 77 69 6e | 64 6f 77 20 69 73 20 61 |y if win|dow is a|
|00002260| 20 47 72 61 66 74 50 74 | 72 2c 20 6e 6f 74 20 61 | GraftPt|r, not a|
|00002270| 20 43 47 72 61 66 50 74 | 72 2e 20 54 72 79 20 74 | CGrafPt|r. Try t|
|00002280| 68 65 20 64 65 6d 6f 20 | 47 72 61 74 69 6e 67 2e |he demo |Grating.|
|00002290| 0d 0d 47 44 54 65 73 74 | 43 6c 75 74 2e 63 20 74 |..GDTest|Clut.c t|
|000022a0| 65 73 74 73 20 77 68 65 | 74 68 65 72 20 74 68 65 |ests whe|ther the|
|000022b0| 20 76 69 64 65 6f 20 63 | 6c 75 74 20 63 61 6e 20 | video c|lut can |
|000022c0| 62 65 20 77 72 69 74 74 | 65 6e 20 61 6e 64 20 72 |be writt|en and r|
|000022d0| 65 61 64 20 66 61 69 74 | 68 66 75 6c 6c 79 2c 20 |ead fait|hfully, |
|000022e0| 61 6e 64 20 73 61 76 65 | 73 20 74 68 65 20 72 65 |and save|s the re|
|000022f0| 73 75 6c 74 73 20 69 6e | 20 61 20 75 73 65 72 2d |sults in| a user-|
|00002300| 73 75 70 70 6c 69 65 64 | 20 56 69 64 65 6f 49 6e |supplied| VideoIn|
|00002310| 66 6f 20 73 74 72 75 63 | 74 75 72 65 2e 0d 0d 47 |fo struc|ture...G|
|00002320| 44 54 69 6d 65 2e 63 20 | 69 6e 63 6c 75 64 65 73 |DTime.c |includes|
|00002330| 20 76 61 72 69 6f 75 73 | 20 72 6f 75 74 69 6e 65 | various| routine|
|00002340| 73 20 74 68 61 74 20 6d | 65 61 73 75 72 65 20 74 |s that m|easure t|
|00002350| 68 65 20 74 69 6d 69 6e | 67 20 6f 66 20 61 20 76 |he timin|g of a v|
|00002360| 69 64 65 6f 20 64 65 76 | 69 63 65 2e 20 47 44 54 |ideo dev|ice. GDT|
|00002370| 69 6d 65 43 6c 75 74 20 | 6d 65 61 73 75 72 65 73 |imeClut |measures|
|00002380| 20 68 6f 77 20 6c 6f 6e | 67 20 69 74 20 74 61 6b | how lon|g it tak|
|00002390| 65 73 20 74 6f 20 6c 6f | 61 64 20 74 68 65 20 63 |es to lo|ad the c|
|000023a0| 6c 75 74 2e 20 47 44 46 | 72 61 6d 65 52 61 74 65 |lut. GDF|rameRate|
|000023b0| 20 6d 65 61 73 75 72 65 | 73 20 74 68 65 20 66 72 | measure|s the fr|
|000023c0| 61 6d 65 20 72 61 74 65 | 20 69 6e 20 48 7a 2e 20 |ame rate| in Hz. |
|000023d0| 47 44 56 42 4c 52 61 74 | 65 28 29 20 6d 65 61 73 |GDVBLRat|e() meas|
|000023e0| 75 72 65 73 20 74 68 65 | 20 72 61 74 65 20 6f 66 |ures the| rate of|
|000023f0| 20 56 42 4c 20 69 6e 74 | 65 72 72 75 70 74 73 20 | VBL int|errupts |
|00002400| 69 6e 20 48 7a 2e 20 47 | 44 4d 6f 76 69 65 53 69 |in Hz. G|DMovieSi|
|00002410| 7a 65 28 29 20 6d 65 61 | 73 75 72 65 73 20 77 68 |ze() mea|sures wh|
|00002420| 61 74 20 66 72 61 63 74 | 69 6f 6e 20 6f 66 20 74 |at fract|ion of t|
|00002430| 68 65 20 73 63 72 65 65 | 6e 20 79 6f 75 20 63 61 |he scree|n you ca|
|00002440| 6e 20 66 69 6c 6c 20 77 | 69 74 68 20 61 20 72 65 |n fill w|ith a re|
|00002450| 61 6c 2d 74 69 6d 65 20 | 6d 6f 76 69 65 20 28 61 |al-time |movie (a|
|00002460| 20 6e 65 77 20 69 6d 61 | 67 65 20 6f 6e 20 65 61 | new ima|ge on ea|
|00002470| 63 68 20 66 72 61 6d 65 | 29 20 75 73 69 6e 67 20 |ch frame|) using |
|00002480| 65 69 74 68 65 72 20 43 | 6f 70 79 42 69 74 73 51 |either C|opyBitsQ|
|00002490| 75 69 63 6b 6c 79 20 6f | 72 20 43 6f 70 79 42 69 |uickly o|r CopyBi|
|000024a0| 74 73 20 74 6f 20 63 6f | 70 79 20 66 72 6f 6d 20 |ts to co|py from |
|000024b0| 6d 65 6d 6f 72 79 20 74 | 6f 20 76 69 64 65 6f 20 |memory t|o video |
|000024c0| 63 61 72 64 2e 20 54 72 | 79 20 74 68 65 20 64 65 |card. Tr|y the de|
|000024d0| 6d 6f 20 54 69 6d 65 56 | 69 64 65 6f 2e 0d 0d 47 |mo TimeV|ideo...G|
|000024e0| 44 56 69 64 65 6f 2e 63 | 20 61 6c 6c 6f 77 73 20 |DVideo.c| allows |
|000024f0| 79 6f 75 20 74 6f 20 63 | 6f 6e 74 72 6f 6c 20 74 |you to c|ontrol t|
|00002500| 68 65 20 76 69 64 65 6f | 20 64 72 69 76 65 72 20 |he video| driver |
|00002510| 64 69 72 65 63 74 6c 79 | 2c 20 62 79 70 61 73 73 |directly|, bypass|
|00002520| 69 6e 67 20 51 75 69 63 | 6b 44 72 61 77 2e 20 49 |ing Quic|kDraw. I|
|00002530| 20 63 6f 6e 73 69 64 65 | 72 20 74 68 69 73 20 65 | conside|r this e|
|00002540| 73 73 65 6e 74 69 61 6c | 20 66 6f 72 20 63 6f 6e |ssential| for con|
|00002550| 74 72 6f 6c 6c 69 6e 67 | 20 74 68 65 20 6c 6f 6f |trolling| the loo|
|00002560| 6b 75 70 20 74 61 62 6c | 65 20 6f 66 20 74 68 65 |kup tabl|e of the|
|00002570| 20 76 69 64 65 6f 20 63 | 61 72 64 2e 0d 47 44 43 | video c|ard..GDC|
|00002580| 61 72 64 4e 61 6d 65 28 | 64 65 76 69 63 65 29 20 |ardName(|device) |
|00002590| 72 65 74 75 72 6e 73 20 | 61 20 43 20 73 74 72 69 |returns |a C stri|
|000025a0| 6e 67 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 |ng conta|ining th|
|000025b0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 76 69 |e name o|f the vi|
|000025c0| 64 65 6f 20 63 61 72 64 | 2e 0d 47 44 43 6c 75 74 |deo card|..GDClut|
|000025d0| 53 69 7a 65 28 64 65 76 | 69 63 65 29 20 72 65 74 |Size(dev|ice) ret|
|000025e0| 75 72 6e 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |urns the| number |
|000025f0| 6f 66 20 65 6e 74 72 69 | 65 73 20 69 6e 20 74 68 |of entri|es in th|
|00002600| 65 20 76 69 64 65 6f 20 | 64 72 69 76 65 72 27 73 |e video |driver's|
|00002610| 20 63 6c 75 74 20 69 6e | 20 74 68 65 20 63 75 72 | clut in| the cur|
|00002620| 72 65 6e 74 20 76 69 64 | 65 6f 20 6d 6f 64 65 20 |rent vid|eo mode |
|00002630| 28 69 2e 65 2e 20 63 75 | 72 72 65 6e 74 20 70 69 |(i.e. cu|rrent pi|
|00002640| 78 65 6c 20 73 69 7a 65 | 29 2e 20 56 69 64 65 6f |xel size|). Video|
|00002650| 54 6f 6f 6c 62 6f 78 2e | 68 20 64 65 66 69 6e 65 |Toolbox.|h define|
|00002660| 73 20 61 20 70 72 65 70 | 72 6f 63 65 73 73 6f 72 |s a prep|rocessor|
|00002670| 20 6d 61 63 72 6f 20 47 | 44 43 4c 55 54 53 49 5a | macro G|DCLUTSIZ|
|00002680| 45 28 64 65 76 69 63 65 | 29 20 74 68 61 74 20 65 |E(device|) that e|
|00002690| 78 70 61 6e 64 73 20 74 | 6f 20 65 71 75 69 76 61 |xpands t|o equiva|
|000026a0| 6c 65 6e 74 20 69 6e 6c | 69 6e 65 20 63 6f 64 65 |lent inl|ine code|
|000026b0| 2e 0d 47 44 43 6f 6c 6f | 72 73 28 64 65 76 69 63 |..GDColo|rs(devic|
|000026c0| 65 29 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |e) retur|ns the n|
|000026d0| 75 6d 62 65 72 20 6f 66 | 20 63 6f 6c 6f 72 73 2c |umber of| colors,|
|000026e0| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|000026f0| 76 69 64 65 6f 20 6d 6f | 64 65 2e 0d 47 44 44 61 |video mo|de..GDDa|
|00002700| 63 53 69 7a 65 28 64 65 | 76 69 63 65 29 20 72 65 |cSize(de|vice) re|
|00002710| 74 75 72 6e 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |turns th|e number|
|00002720| 20 6f 66 20 62 69 74 73 | 20 69 6e 20 74 68 65 20 | of bits| in the |
|00002730| 76 69 64 65 6f 20 63 61 | 72 64 27 73 20 64 61 63 |video ca|rd's dac|
|00002740| 2e 0d 47 44 44 69 72 65 | 63 74 53 65 74 45 6e 74 |..GDDire|ctSetEnt|
|00002750| 72 69 65 73 28 64 65 76 | 69 63 65 2c 73 74 61 72 |ries(dev|ice,star|
|00002760| 74 2c 63 6f 75 6e 74 2c | 74 61 62 6c 65 29 20 6c |t,count,|table) l|
|00002770| 6f 61 64 73 20 74 68 65 | 20 63 6c 75 74 2c 20 69 |oads the| clut, i|
|00002780| 66 20 70 69 78 65 6c 73 | 20 61 72 65 20 31 36 20 |f pixels| are 16 |
|00002790| 6f 72 20 33 32 20 62 69 | 74 73 2e 0d 47 44 47 65 |or 32 bi|ts..GDGe|
|000027a0| 74 45 6e 74 72 69 65 73 | 28 64 65 76 69 63 65 2c |tEntries|(device,|
|000027b0| 73 74 61 72 74 2c 63 6f | 75 6e 74 2c 74 61 62 6c |start,co|unt,tabl|
|000027c0| 65 29 20 72 65 61 64 73 | 20 74 68 65 20 63 6c 75 |e) reads| the clu|
|000027d0| 74 2e 0d 47 44 47 65 74 | 47 61 6d 6d 61 28 64 65 |t..GDGet|Gamma(de|
|000027e0| 76 69 63 65 2c 67 61 6d | 6d 61 54 62 6c 48 61 6e |vice,gam|maTblHan|
|000027f0| 64 6c 65 29 20 72 65 74 | 75 72 6e 73 20 61 20 70 |dle) ret|urns a p|
|00002800| 6f 69 6e 74 65 72 20 74 | 6f 20 74 68 65 20 64 65 |ointer t|o the de|
|00002810| 76 69 63 65 27 73 20 47 | 61 6d 6d 61 20 74 61 62 |vice's G|amma tab|
|00002820| 6c 65 2e 0d 47 44 47 65 | 74 50 61 67 65 43 6e 74 |le..GDGe|tPageCnt|
|00002830| 28 64 65 76 69 63 65 2c | 6d 6f 64 65 2c 26 70 61 |(device,|mode,&pa|
|00002840| 67 65 73 29 20 74 65 6c | 6c 73 20 79 6f 75 20 68 |ges) tel|ls you h|
|00002850| 6f 77 20 6d 61 6e 79 20 | 70 61 67 65 73 20 6f 66 |ow many |pages of|
|00002860| 20 76 69 64 65 6f 20 72 | 61 6d 20 61 72 65 20 61 | video r|am are a|
|00002870| 76 61 69 6c 61 62 6c 65 | 20 69 6e 20 61 6e 79 20 |vailable| in any |
|00002880| 67 69 76 65 6e 20 6d 6f | 64 65 2e 0d 47 44 48 61 |given mo|de..GDHa|
|00002890| 73 4d 6f 64 65 28 64 65 | 76 69 63 65 2c 6d 6f 64 |sMode(de|vice,mod|
|000028a0| 65 2c 26 70 69 78 65 6c | 53 69 7a 65 2c 26 70 61 |e,&pixel|Size,&pa|
|000028b0| 67 65 73 29 20 74 65 6c | 6c 73 20 79 6f 75 20 77 |ges) tel|ls you w|
|000028c0| 68 65 74 68 65 72 20 61 | 20 70 61 72 74 69 63 75 |hether a| particu|
|000028d0| 6c 61 72 20 76 69 64 65 | 6f 20 6d 6f 64 65 20 69 |lar vide|o mode i|
|000028e0| 73 20 73 75 70 70 6f 72 | 74 65 64 20 62 79 20 79 |s suppor|ted by y|
|000028f0| 6f 75 72 20 76 69 64 65 | 6f 20 64 65 76 69 63 65 |our vide|o device|
|00002900| 2e 0d 47 44 4e 61 6d 65 | 28 64 65 76 69 63 65 29 |..GDName|(device)|
|00002910| 20 72 65 74 75 72 6e 73 | 20 61 20 50 61 73 63 61 | returns| a Pasca|
|00002920| 6c 20 73 74 72 69 6e 67 | 20 63 6f 6e 74 61 69 6e |l string| contain|
|00002930| 69 6e 67 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ing the |name of |
|00002940| 74 68 65 20 64 72 69 76 | 65 72 2e 0d 47 44 4e 65 |the driv|er..GDNe|
|00002950| 77 4c 69 6e 65 61 72 43 | 6f 6c 6f 72 54 61 62 6c |wLinearC|olorTabl|
|00002960| 65 28 64 65 76 69 63 65 | 29 20 72 65 74 75 72 6e |e(device|) return|
|00002970| 73 20 61 20 64 65 66 61 | 75 6c 74 20 74 61 62 6c |s a defa|ult tabl|
|00002980| 65 20 66 6f 72 20 75 73 | 65 20 77 68 65 6e 20 70 |e for us|e when p|
|00002990| 69 78 65 6c 53 69 7a 65 | 20 69 73 20 31 36 20 6f |ixelSize| is 16 o|
|000029a0| 72 20 33 32 20 62 69 74 | 73 2e 0d 47 44 50 72 69 |r 32 bit|s..GDPri|
|000029b0| 6e 74 47 61 6d 6d 61 54 | 61 62 6c 65 28 29 2e 0d |ntGammaT|able()..|
|000029c0| 47 44 52 65 73 74 6f 72 | 65 44 65 76 69 63 65 43 |GDRestor|eDeviceC|
|000029d0| 6c 75 74 28 64 65 76 69 | 63 65 29 20 77 6f 72 6b |lut(devi|ce) work|
|000029e0| 73 20 6d 6f 72 65 20 72 | 65 6c 69 61 62 6c 79 20 |s more r|eliably |
|000029f0| 74 68 61 6e 20 41 70 70 | 6c 65 27 73 20 52 65 73 |than App|le's Res|
|00002a00| 74 6f 72 65 44 65 76 69 | 63 65 43 6c 75 74 2e 0d |toreDevi|ceClut..|
|00002a10| 47 44 53 61 76 65 47 61 | 6d 6d 61 28 64 65 76 69 |GDSaveGa|mma(devi|
|00002a20| 63 65 29 2f 47 44 52 65 | 73 74 6f 72 65 47 61 6d |ce)/GDRe|storeGam|
|00002a30| 6d 61 28 64 65 76 69 63 | 65 29 20 73 61 76 65 2f |ma(devic|e) save/|
|00002a40| 72 65 73 74 6f 72 65 20 | 74 68 65 20 64 72 69 76 |restore |the driv|
|00002a50| 65 72 27 73 20 67 61 6d | 6d 61 2d 63 6f 72 72 65 |er's gam|ma-corre|
|00002a60| 63 74 69 6f 6e 20 74 61 | 62 6c 65 2e 20 0d 47 44 |ction ta|ble. .GD|
|00002a70| 53 65 74 45 6e 74 72 69 | 65 73 28 64 65 76 69 63 |SetEntri|es(devic|
|00002a80| 65 2c 73 74 61 72 74 2c | 63 6f 75 6e 74 2c 74 61 |e,start,|count,ta|
|00002a90| 62 6c 65 29 20 6c 6f 61 | 64 73 20 74 68 65 20 63 |ble) loa|ds the c|
|00002aa0| 6c 75 74 20 69 66 20 70 | 69 78 65 6c 73 20 61 72 |lut if p|ixels ar|
|00002ab0| 65 20 31 20 74 6f 20 38 | 20 62 69 74 73 2e 20 44 |e 1 to 8| bits. D|
|00002ac0| 6f 65 73 20 61 20 6c 6f | 77 2d 6c 65 76 65 6c 20 |oes a lo|w-level |
|00002ad0| 73 65 74 45 6e 74 72 69 | 65 73 20 43 6f 6e 74 72 |setEntri|es Contr|
|00002ae0| 6f 6c 20 63 61 6c 6c 20 | 74 6f 20 74 68 65 20 76 |ol call |to the v|
|00002af0| 69 64 65 6f 20 63 61 72 | 64 27 73 20 64 72 69 76 |ideo car|d's driv|
|00002b00| 65 72 2c 20 6c 6f 61 64 | 69 6e 67 20 61 6e 79 20 |er, load|ing any |
|00002b10| 6e 75 6d 62 65 72 20 6f | 66 20 63 6c 75 74 20 65 |number o|f clut e|
|00002b20| 6e 74 72 69 65 73 20 77 | 69 74 68 20 61 72 62 69 |ntries w|ith arbi|
|00002b30| 74 72 61 72 79 20 72 67 | 62 20 74 72 69 70 6c 65 |trary rg|b triple|
|00002b40| 74 73 2e 20 0d 47 44 53 | 65 74 45 6e 74 72 69 65 |ts. .GDS|etEntrie|
|00002b50| 73 42 79 54 79 70 65 28 | 64 65 76 69 63 65 2c 73 |sByType(|device,s|
|00002b60| 74 61 72 74 2c 63 6f 75 | 6e 74 2c 74 61 62 6c 65 |tart,cou|nt,table|
|00002b70| 29 20 63 68 65 63 6b 73 | 20 74 68 65 20 64 65 76 |) checks| the dev|
|00002b80| 69 63 65 27 73 20 67 64 | 54 79 70 65 20 66 69 65 |ice's gd|Type fie|
|00002b90| 6c 64 0d 61 6e 64 20 63 | 61 6c 6c 73 20 47 44 53 |ld.and c|alls GDS|
|00002ba0| 65 74 45 6e 74 72 69 65 | 73 2c 20 47 44 44 69 72 |etEntrie|s, GDDir|
|00002bb0| 65 63 74 53 65 74 45 6e | 74 72 69 65 73 2c 20 6f |ectSetEn|tries, o|
|00002bc0| 72 20 6e 6f 74 68 69 6e | 67 2c 20 61 73 20 61 70 |r nothin|g, as ap|
|00002bd0| 70 72 6f 70 72 69 61 74 | 65 2e 0d 47 44 53 65 74 |propriat|e..GDSet|
|00002be0| 45 6e 74 72 69 65 73 42 | 79 54 79 70 65 48 69 67 |EntriesB|yTypeHig|
|00002bf0| 68 50 72 69 6f 72 69 74 | 79 28 64 65 76 69 63 65 |hPriorit|y(device|
|00002c00| 2c 73 74 61 72 74 2c 63 | 6f 75 6e 74 2c 74 61 62 |,start,c|ount,tab|
|00002c10| 6c 65 29 20 63 61 6c 6c | 73 0d 47 44 53 65 74 45 |le) call|s.GDSetE|
|00002c20| 6e 74 72 69 65 73 42 79 | 54 79 70 65 28 29 20 77 |ntriesBy|Type() w|
|00002c30| 68 69 6c 65 20 74 68 65 | 20 70 72 6f 63 65 73 73 |hile the| process|
|00002c40| 6f 72 20 70 72 69 6f 72 | 69 74 79 20 68 61 73 20 |or prior|ity has |
|00002c50| 62 65 65 6e 20 74 65 6d | 70 6f 72 61 72 69 6c 79 |been tem|porarily|
|00002c60| 20 72 61 69 73 65 64 20 | 74 6f 20 37 2e 0d 47 44 | raised |to 7..GD|
|00002c70| 53 65 74 47 61 6d 6d 61 | 28 64 65 76 69 63 65 2c |SetGamma|(device,|
|00002c80| 67 61 6d 6d 61 29 20 6c | 6f 61 64 73 20 61 20 47 |gamma) l|oads a G|
|00002c90| 61 6d 6d 61 20 74 61 62 | 6c 65 20 69 6e 74 6f 20 |amma tab|le into |
|00002ca0| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 76 69 |the spec|ified vi|
|00002cb0| 64 65 6f 20 64 65 76 69 | 63 65 2e 20 0d 47 44 53 |deo devi|ce. .GDS|
|00002cc0| 65 74 4d 6f 64 65 28 64 | 65 76 69 63 65 2c 6d 6f |etMode(d|evice,mo|
|00002cd0| 64 65 2c 70 61 67 65 2c | 26 62 61 73 65 41 64 64 |de,page,|&baseAdd|
|00002ce0| 72 29 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 76 |r) chang|es the v|
|00002cf0| 69 64 65 6f 20 63 61 72 | 64 27 73 20 6d 6f 64 65 |ideo car|d's mode|
|00002d00| 20 28 69 2e 65 2e 20 70 | 69 78 65 6c 53 69 7a 65 | (i.e. p|ixelSize|
|00002d10| 29 20 61 6e 64 20 70 61 | 67 65 2e 0d 47 44 53 65 |) and pa|ge..GDSe|
|00002d20| 74 50 61 67 65 44 72 61 | 77 6e 28 64 65 76 69 63 |tPageDra|wn(devic|
|00002d30| 65 2c 70 61 67 65 29 20 | 73 65 6c 65 63 74 73 20 |e,page) |selects |
|00002d40| 77 68 69 63 68 20 70 61 | 67 65 20 6f 66 20 76 69 |which pa|ge of vi|
|00002d50| 64 65 6f 20 6d 65 6d 6f | 72 79 20 77 69 6c 6c 20 |deo memo|ry will |
|00002d60| 62 65 20 75 73 65 64 20 | 62 79 20 66 75 74 75 72 |be used |by futur|
|00002d70| 65 20 64 72 61 77 69 6e | 67 20 6f 70 65 72 61 74 |e drawin|g operat|
|00002d80| 69 6f 6e 73 2e 20 55 6e | 74 65 73 74 65 64 2e 0d |ions. Un|tested..|
|00002d90| 47 44 53 65 74 50 61 67 | 65 53 68 6f 77 6e 28 64 |GDSetPag|eShown(d|
|00002da0| 65 76 69 63 65 2c 70 61 | 67 65 29 20 73 65 6c 65 |evice,pa|ge) sele|
|00002db0| 63 74 73 20 77 68 69 63 | 68 20 70 61 67 65 20 6f |cts whic|h page o|
|00002dc0| 66 20 76 69 64 65 6f 20 | 6d 65 6d 6f 72 79 20 77 |f video |memory w|
|00002dd0| 65 20 73 65 65 2e 20 55 | 6e 74 65 73 74 65 64 2e |e see. U|ntested.|
|00002de0| 0d 47 44 55 6e 63 6f 72 | 72 65 63 74 65 64 47 61 |.GDUncor|rectedGa|
|00002df0| 6d 6d 61 28 64 65 76 69 | 63 65 29 20 6c 6f 61 64 |mma(devi|ce) load|
|00002e00| 73 20 61 6e 20 69 64 65 | 6e 74 69 74 79 20 6d 61 |s an ide|ntity ma|
|00002e10| 74 72 69 78 20 61 73 20 | 74 68 65 20 67 61 6d 6d |trix as |the gamm|
|00002e20| 61 2d 63 6f 72 72 65 63 | 74 69 6f 6e 20 74 61 62 |a-correc|tion tab|
|00002e30| 6c 65 2e 20 0d 47 44 56 | 65 72 73 69 6f 6e 28 64 |le. .GDV|ersion(d|
|00002e40| 65 76 69 63 65 29 20 72 | 65 74 75 72 6e 73 20 74 |evice) r|eturns t|
|00002e50| 68 65 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |he versi|on numbe|
|00002e60| 72 20 6f 66 20 74 68 65 | 20 64 72 69 76 65 72 2e |r of the| driver.|
|00002e70| 20 0d 50 61 74 63 68 4d | 61 63 49 49 63 69 56 69 | .PatchM|acIIciVi|
|00002e80| 64 65 6f 44 72 69 76 65 | 72 28 29 20 66 69 78 65 |deoDrive|r() fixe|
|00002e90| 73 20 61 20 62 75 67 20 | 69 6e 20 74 68 65 20 4d |s a bug |in the M|
|00002ea0| 61 63 20 49 49 63 69 20 | 62 75 69 6c 74 2d 69 6e |ac IIci |built-in|
|00002eb0| 20 76 69 64 65 6f 20 64 | 72 69 76 65 72 2e 0d 54 | video d|river..T|
|00002ec0| 72 79 20 74 68 65 20 64 | 65 6d 6f 73 20 54 69 6d |ry the d|emos Tim|
|00002ed0| 65 56 69 64 65 6f 20 61 | 6e 64 20 54 65 73 74 47 |eVideo a|nd TestG|
|00002ee0| 44 56 69 64 65 6f 2e 20 | 53 65 65 20 22 56 69 64 |DVideo. |See "Vid|
|00002ef0| 65 6f 20 73 79 6e 63 68 | 22 2e 0d 0d 47 65 74 43 |eo synch|"...GetC|
|00002f00| 6c 69 63 6b 73 2e 63 20 | 77 61 69 74 73 20 66 6f |licks.c |waits fo|
|00002f10| 72 20 61 20 6d 6f 75 73 | 65 20 63 6c 69 63 6b 2c |r a mous|e click,|
|00002f20| 20 61 6e 64 20 64 65 74 | 65 72 6d 69 6e 65 73 20 | and det|ermines |
|00002f30| 77 68 65 74 68 65 72 20 | 69 74 27 73 20 61 20 73 |whether |it's a s|
|00002f40| 69 6e 67 6c 65 2c 20 64 | 6f 75 62 6c 65 2c 20 6f |ingle, d|ouble, o|
|00002f50| 72 20 74 72 69 70 6c 65 | 20 63 6c 69 63 6b 2e 0d |r triple| click..|
|00002f60| 0d 47 65 74 53 63 72 65 | 65 6e 44 65 76 69 63 65 |.GetScre|enDevice|
|00002f70| 2e 63 20 72 65 74 75 72 | 6e 73 20 61 20 68 61 6e |.c retur|ns a han|
|00002f80| 64 6c 65 20 74 6f 20 74 | 68 65 20 6e 2d 74 68 20 |dle to t|he n-th |
|00002f90| 73 63 72 65 65 6e 2c 20 | 77 68 65 72 65 20 74 68 |screen, |where th|
|00002fa0| 65 20 4d 61 69 6e 44 65 | 76 69 63 65 20 69 73 20 |e MainDe|vice is |
|00002fb0| 74 68 65 20 7a 65 72 6f | 2d 74 68 20 73 63 72 65 |the zero|-th scre|
|00002fc0| 65 6e 2e 20 6e 3d 47 65 | 74 53 63 72 65 65 6e 49 |en. n=Ge|tScreenI|
|00002fd0| 6e 64 65 78 28 64 65 76 | 69 63 65 29 20 72 65 74 |ndex(dev|ice) ret|
|00002fe0| 75 72 6e 73 20 74 68 65 | 20 69 6e 76 65 72 73 65 |urns the| inverse|
|00002ff0| 20 6f 66 20 47 65 74 53 | 63 72 65 65 6e 44 65 76 | of GetS|creenDev|
|00003000| 69 63 65 28 29 2e 20 73 | 6c 6f 74 3d 47 65 74 44 |ice(). s|lot=GetD|
|00003010| 65 76 69 63 65 53 6c 6f | 74 28 64 65 76 69 63 65 |eviceSlo|t(device|
|00003020| 29 20 67 65 74 73 20 74 | 68 65 20 22 73 6c 6f 74 |) gets t|he "slot|
|00003030| 22 20 66 6f 72 20 61 6e | 79 20 73 63 72 65 65 6e |" for an|y screen|
|00003040| 20 64 65 76 69 63 65 2e | 20 64 65 76 69 63 65 3d | device.| device=|
|00003050| 53 6c 6f 74 54 6f 53 63 | 72 65 65 6e 44 65 76 69 |SlotToSc|reenDevi|
|00003060| 63 65 28 6e 29 20 72 65 | 74 75 72 6e 73 20 61 20 |ce(n) re|turns a |
|00003070| 68 61 6e 64 6c 65 20 74 | 6f 20 74 68 65 20 73 63 |handle t|o the sc|
|00003080| 72 65 65 6e 20 64 65 76 | 69 63 65 20 69 6e 20 73 |reen dev|ice in s|
|00003090| 6c 6f 74 20 6e 2e 20 64 | 65 76 69 63 65 3d 47 65 |lot n. d|evice=Ge|
|000030a0| 74 57 69 6e 64 6f 77 44 | 65 76 69 63 65 28 77 69 |tWindowD|evice(wi|
|000030b0| 6e 64 6f 77 29 20 72 65 | 74 75 72 6e 73 20 47 44 |ndow) re|turns GD|
|000030c0| 48 61 6e 64 6c 65 20 6f | 66 20 73 63 72 65 65 6e |Handle o|f screen|
|000030d0| 20 77 69 74 68 20 6c 61 | 72 67 65 73 74 20 69 6e | with la|rgest in|
|000030e0| 74 65 72 73 65 63 74 69 | 6f 6e 20 77 69 74 68 20 |tersecti|on with |
|000030f0| 74 68 65 20 77 69 6e 64 | 6f 77 27 73 20 63 6f 6e |the wind|ow's con|
|00003100| 74 65 6e 74 2e 20 0d 0d | 47 65 74 56 65 72 73 69 |tent. ..|GetVersi|
|00003110| 6f 6e 53 74 72 69 6e 67 | 2e 63 20 67 65 74 73 20 |onString|.c gets |
|00003120| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 27 |the appl|ication'|
|00003130| 73 20 76 65 72 73 69 6f | 6e 20 66 72 6f 6d 20 69 |s versio|n from i|
|00003140| 74 73 20 27 76 65 72 73 | 27 20 72 65 73 6f 75 72 |ts 'vers|' resour|
|00003150| 63 65 2e 0d 0d 47 65 74 | 56 6f 6c 74 61 67 65 2e |ce...Get|Voltage.|
|00003160| 63 20 72 65 61 64 73 20 | 61 20 76 6f 6c 74 61 67 |c reads |a voltag|
|00003170| 65 20 66 72 6f 6d 20 74 | 68 65 20 44 61 74 61 20 |e from t|he Data |
|00003180| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 20 41 6e 61 6c |Translat|ion Anal|
|00003190| 6f 67 20 74 6f 20 44 69 | 67 69 74 61 6c 20 43 6f |og to Di|gital Co|
|000031a0| 6e 76 65 72 74 65 72 2e | 20 54 68 69 73 20 69 73 |nverter.| This is|
|000031b0| 20 75 73 65 64 20 68 65 | 61 76 69 6c 79 20 62 79 | used he|avily by|
|000031c0| 20 43 61 6c 69 62 72 61 | 74 65 4c 75 6d 69 6e 61 | Calibra|teLumina|
|000031d0| 6e 63 65 2c 20 43 68 65 | 63 6b 43 6f 6e 74 72 61 |nce, Che|ckContra|
|000031e0| 73 74 2c 20 61 6e 64 20 | 4d 65 61 73 75 72 65 4d |st, and |MeasureM|
|000031f0| 54 46 2e 20 59 6f 75 20 | 6d 61 79 20 77 61 6e 74 |TF. You |may want|
|00003200| 20 74 6f 20 77 72 69 74 | 65 20 61 6e 20 65 71 75 | to writ|e an equ|
|00003210| 69 76 61 6c 65 6e 74 20 | 72 6f 75 74 69 6e 65 20 |ivalent |routine |
|00003220| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 75 73 65 20 |in order| to use |
|00003230| 74 68 6f 73 65 20 70 72 | 6f 67 72 61 6d 73 20 77 |those pr|ograms w|
|00003240| 69 74 68 20 61 6e 6f 74 | 68 65 72 20 41 6e 61 6c |ith anot|her Anal|
|00003250| 6f 67 20 74 6f 20 44 69 | 67 69 74 61 6c 20 43 6f |og to Di|gital Co|
|00003260| 6e 76 65 72 74 65 72 2e | 0d 0d 48 69 64 65 4d 65 |nverter.|..HideMe|
|00003270| 6e 75 42 61 72 2e 63 20 | 61 6e 64 20 53 71 75 61 |nuBar.c |and Squa|
|00003280| 72 65 43 6f 72 6e 65 72 | 73 28 64 65 76 69 63 65 |reCorner|s(device|
|00003290| 29 20 61 6c 6c 6f 77 20 | 75 73 65 20 6f 66 20 74 |) allow |use of t|
|000032a0| 68 65 20 77 68 6f 6c 65 | 20 73 63 72 65 65 6e 2e |he whole| screen.|
|000032b0| 20 54 72 79 20 47 72 61 | 74 69 6e 67 2e 0d 0d 49 | Try Gra|ting...I|
|000032c0| 64 65 6e 74 69 66 79 2e | 63 20 69 6e 63 6c 75 64 |dentify.|c includ|
|000032d0| 65 73 20 73 65 76 65 72 | 61 6c 20 66 75 6e 63 74 |es sever|al funct|
|000032e0| 69 6f 6e 73 2c 20 49 64 | 65 6e 74 69 66 79 43 6f |ions, Id|entifyCo|
|000032f0| 6d 70 69 6c 65 72 28 29 | 2c 20 49 64 65 6e 74 69 |mpiler()|, Identi|
|00003300| 66 79 4d 61 63 68 69 6e | 65 28 29 2c 20 49 64 65 |fyMachin|e(), Ide|
|00003310| 6e 74 69 66 79 4d 6f 64 | 65 6c 28 29 2c 20 49 64 |ntifyMod|el(), Id|
|00003320| 65 6e 74 69 66 79 4f 77 | 6e 65 72 28 29 2c 20 61 |entifyOw|ner(), a|
|00003330| 6e 64 20 49 64 65 6e 74 | 69 66 79 56 69 64 65 6f |nd Ident|ifyVideo|
|00003340| 28 29 2c 20 74 68 61 74 | 20 70 72 6f 64 75 63 65 |(), that| produce|
|00003350| 20 73 65 6c 66 20 65 78 | 70 6c 61 6e 61 74 6f 72 | self ex|planator|
|00003360| 79 20 74 65 78 74 20 73 | 74 72 69 6e 67 73 2e 20 |y text s|trings. |
|00003370| 54 72 79 20 74 68 65 20 | 64 65 6d 6f 73 20 54 69 |Try the |demos Ti|
|00003380| 6d 65 43 50 55 20 61 6e | 64 20 54 69 6d 65 56 69 |meCPU an|d TimeVi|
|00003390| 64 65 6f 2e 0d 0d 49 6d | 61 67 65 53 74 61 74 69 |deo...Im|ageStati|
|000033a0| 73 74 69 63 73 2e 63 20 | 63 6f 6d 70 75 74 65 73 |stics.c |computes|
|000033b0| 20 74 68 65 20 6d 69 6e | 69 6d 75 6d 2c 20 6d 61 | the min|imum, ma|
|000033c0| 78 69 6d 75 6d 2c 20 6d | 65 61 6e 2c 20 61 6e 64 |ximum, m|ean, and|
|000033d0| 20 6d 65 61 6e 20 73 71 | 75 61 72 65 20 76 61 6c | mean sq|uare val|
|000033e0| 75 65 20 6f 66 20 74 68 | 65 20 70 69 78 65 6c 73 |ue of th|e pixels|
|000033f0| 20 69 6e 20 61 20 73 70 | 65 63 69 66 69 65 64 20 | in a sp|ecified |
|00003400| 72 65 63 74 20 6f 66 20 | 61 20 77 69 6e 64 6f 77 |rect of |a window|
|00003410| 20 6f 72 20 47 57 6f 72 | 6c 64 2e 0d 0d 49 73 43 | or GWor|ld...IsC|
|00003420| 6d 64 50 65 72 69 6f 64 | 2e 63 20 61 63 63 65 70 |mdPeriod|.c accep|
|00003430| 74 73 20 61 6e 20 65 76 | 65 6e 74 20 72 65 63 6f |ts an ev|ent reco|
|00003440| 72 64 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 74 |rd and r|eturns t|
|00003450| 72 75 65 20 6f 72 20 66 | 61 6c 73 65 2c 20 69 6e |rue or f|alse, in|
|00003460| 64 69 63 61 74 69 6e 67 | 20 77 68 65 74 68 65 72 |dicating| whether|
|00003470| 20 74 68 65 20 75 73 65 | 72 20 68 61 73 20 68 69 | the use|r has hi|
|00003480| 74 20 63 6f 6d 6d 61 6e | 64 20 70 65 72 69 6f 64 |t comman|d period|
|00003490| 2e 20 53 68 6f 75 6c 64 | 20 77 6f 72 6b 20 65 76 |. Should| work ev|
|000034a0| 65 6e 20 6f 6e 20 69 6e | 74 65 72 6e 61 74 69 6f |en on in|ternatio|
|000034b0| 6e 61 6c 20 73 79 73 74 | 65 6d 73 20 74 68 61 74 |nal syst|ems that|
|000034c0| 20 64 6f 20 6b 65 79 62 | 6f 61 72 64 20 72 65 6d | do keyb|oard rem|
|000034d0| 61 70 70 69 6e 67 2c 20 | 62 75 74 20 74 68 61 74 |apping, |but that|
|000034e0| 20 68 61 73 20 79 65 74 | 20 74 6f 20 62 65 20 74 | has yet| to be t|
|000034f0| 65 73 74 65 64 2e 0d 0d | 49 73 4e 61 6e 2e 63 20 |ested...|IsNan.c |
|00003500| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 74 65 |allows y|ou to te|
|00003510| 73 74 20 77 68 65 74 68 | 65 72 20 79 6f 75 72 20 |st wheth|er your |
|00003520| 64 6f 75 62 6c 65 20 76 | 61 72 69 61 62 6c 65 20 |double v|ariable |
|00003530| 63 6f 6e 74 61 69 6e 73 | 20 61 20 4e 6f 74 20 41 |contains| a Not A|
|00003540| 20 4e 75 6d 62 65 72 20 | 63 6f 64 65 20 69 6e 73 | Number |code ins|
|00003550| 74 65 61 64 20 6f 66 20 | 61 20 6c 65 67 61 6c 20 |tead of |a legal |
|00003560| 6e 75 6d 62 65 72 2e 20 | 49 73 4e 61 6e 28 29 20 |number. |IsNan() |
|00003570| 72 65 74 75 72 6e 73 20 | 74 68 65 20 69 6e 64 65 |returns |the inde|
|00003580| 78 20 28 31 20 2e 20 2e | 20 2e 20 32 35 35 29 20 |x (1 . .| . 255) |
|00003590| 6f 66 20 74 68 65 20 4e | 41 4e 2c 20 6f 72 20 7a |of the N|AN, or z|
|000035a0| 65 72 6f 20 69 66 20 69 | 74 27 73 20 6e 6f 74 20 |ero if i|t's not |
|000035b0| 61 20 4e 41 4e 2e 20 49 | 73 49 6e 66 28 29 20 72 |a NAN. I|sInf() r|
|000035c0| 65 74 75 72 6e 73 20 2d | 31 20 66 6f 72 20 2d 49 |eturns -|1 for -I|
|000035d0| 4e 46 2c 20 2b 31 20 66 | 6f 72 20 2b 49 4e 46 2c |NF, +1 f|or +INF,|
|000035e0| 20 61 6e 64 20 7a 65 72 | 6f 20 66 6f 72 20 6e 6f | and zer|o for no|
|000035f0| 74 20 b1 49 4e 46 2e 20 | 54 68 65 20 65 78 74 72 |t .INF. |The extr|
|00003600| 61 2d 66 61 73 74 20 6d | 61 63 72 6f 20 49 73 46 |a-fast m|acro IsF|
|00003610| 69 6e 69 74 65 28 29 20 | 72 65 74 75 72 6e 73 20 |inite() |returns |
|00003620| 31 20 69 66 20 79 6f 75 | 72 20 6e 75 6d 62 65 72 |1 if you|r number|
|00003630| 20 69 73 20 6e 65 69 74 | 68 65 72 20 4e 41 4e 20 | is neit|her NAN |
|00003640| 6e 6f 72 20 b1 49 4e 46 | 2e 0d 0d 6b 62 68 69 74 |nor .INF|...kbhit|
|00003650| 2e 63 20 61 6e 64 20 67 | 65 74 63 68 61 72 55 6e |.c and g|etcharUn|
|00003660| 62 75 66 66 65 72 65 64 | 28 29 20 6f 66 66 65 72 |buffered|() offer|
|00003670| 20 6f 6c 64 2d 66 61 73 | 68 69 6f 6e 65 64 20 6d | old-fas|hioned m|
|00003680| 69 63 72 6f 63 6f 6d 70 | 75 74 65 72 2d 73 74 79 |icrocomp|uter-sty|
|00003690| 6c 65 20 75 6e 62 75 66 | 66 65 72 65 64 20 61 63 |le unbuf|fered ac|
|000036a0| 63 65 73 73 20 74 6f 20 | 6b 65 79 73 74 72 6f 6b |cess to |keystrok|
|000036b0| 65 73 2e 0d 0d 4c 6f 67 | 32 4c 2e 63 20 71 75 69 |es...Log|2L.c qui|
|000036c0| 63 6b 6c 79 20 72 65 74 | 75 72 6e 73 20 74 68 65 |ckly ret|urns the|
|000036d0| 20 28 6c 6f 6e 67 29 20 | 69 6e 74 65 67 65 72 20 | (long) |integer |
|000036e0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 6c 6f 67 32 |part of |the log2|
|000036f0| 20 6f 66 20 61 20 6c 6f | 6e 67 20 69 6e 74 65 67 | of a lo|ng integ|
|00003700| 65 72 20 61 72 67 75 6d | 65 6e 74 2e 0d 0d 4c 75 |er argum|ent...Lu|
|00003710| 6d 69 6e 61 6e 63 65 2e | 63 20 70 72 6f 76 69 64 |minance.|c provid|
|00003720| 65 73 20 66 6f 72 20 70 | 72 6f 67 72 61 6d 6d 69 |es for p|rogrammi|
|00003730| 6e 67 20 6f 66 20 74 68 | 65 20 6c 6f 6f 6b 75 70 |ng of th|e lookup|
|00003740| 20 74 61 62 6c 65 20 66 | 6f 72 20 67 61 6d 6d 61 | table f|or gamma|
|00003750| 20 63 6f 72 72 65 63 74 | 69 6f 6e 2c 20 61 6e 64 | correct|ion, and|
|00003760| 20 75 73 65 20 6f 66 20 | 61 20 76 69 64 65 6f 20 | use of |a video |
|00003770| 61 74 74 65 6e 75 61 74 | 6f 72 2e 20 49 74 73 20 |attenuat|or. Its |
|00003780| 74 68 65 6f 72 79 20 6f | 66 20 6f 70 65 72 61 74 |theory o|f operat|
|00003790| 69 6f 6e 20 69 73 20 64 | 65 73 63 72 69 62 65 64 |ion is d|escribed|
|000037a0| 20 62 79 20 50 65 6c 6c | 69 20 61 6e 64 20 5a 68 | by Pell|i and Zh|
|000037b0| 61 6e 67 20 28 31 39 39 | 31 29 2e 20 44 6f 63 75 |ang (199|1). Docu|
|000037c0| 6d 65 6e 74 61 74 69 6f | 6e 20 69 73 20 69 6e 20 |mentatio|n is in |
|000037d0| 74 68 65 20 4c 75 6d 69 | 6e 61 6e 63 65 2e 6e 6f |the Lumi|nance.no|
|000037e0| 74 65 20 66 69 6c 65 2e | 20 54 72 79 20 74 68 65 |te file.| Try the|
|000037f0| 20 64 65 6d 6f 73 20 46 | 6c 69 63 6b 65 72 47 72 | demos F|lickerGr|
|00003800| 61 74 69 6e 67 20 61 6e | 64 20 46 69 6c 74 65 72 |ating an|d Filter|
|00003810| 2e 0d 0d 4c 75 6d 69 6e | 61 6e 63 65 2e 68 20 69 |...Lumin|ance.h i|
|00003820| 73 20 74 68 65 20 68 65 | 61 64 65 72 20 66 69 6c |s the he|ader fil|
|00003830| 65 20 66 6f 72 20 75 73 | 65 20 77 69 74 68 20 4c |e for us|e with L|
|00003840| 75 6d 69 6e 61 6e 63 65 | 2e 63 2e 0d 0d 4c 75 6d |uminance|.c...Lum|
|00003850| 69 6e 61 6e 63 65 52 65 | 63 6f 72 64 31 2e 68 20 |inanceRe|cord1.h |
|00003860| 69 73 20 61 20 73 61 6d | 70 6c 65 20 22 68 65 61 |is a sam|ple "hea|
|00003870| 64 65 72 22 20 66 69 6c | 65 20 70 72 6f 64 75 63 |der" fil|e produc|
|00003880| 65 64 20 62 79 20 43 61 | 6c 69 62 72 61 74 65 4c |ed by Ca|librateL|
|00003890| 75 6d 69 6e 61 6e 63 65 | 2e 63 20 66 6f 72 20 6f |uminance|.c for o|
|000038a0| 6e 65 20 6f 66 20 6d 79 | 20 6d 6f 6e 69 74 6f 72 |ne of my| monitor|
|000038b0| 73 2e 20 49 74 20 64 65 | 73 63 72 69 62 65 73 20 |s. It de|scribes |
|000038c0| 74 68 65 20 67 61 6d 6d | 61 20 66 75 6e 63 74 69 |the gamm|a functi|
|000038d0| 6f 6e 20 61 6e 64 20 74 | 68 65 20 67 61 69 6e 73 |on and t|he gains|
|000038e0| 20 6f 66 20 74 68 65 20 | 74 68 72 65 65 20 63 68 | of the |three ch|
|000038f0| 61 6e 6e 65 6c 73 20 6f | 66 20 74 68 65 20 49 53 |annels o|f the IS|
|00003900| 52 20 56 69 64 65 6f 20 | 61 74 74 65 6e 75 61 74 |R Video |attenuat|
|00003910| 6f 72 2e 20 59 6f 75 20 | 73 68 6f 75 6c 64 20 72 |or. You |should r|
|00003920| 75 6e 20 43 61 6c 69 62 | 72 61 74 65 4c 75 6d 69 |un Calib|rateLumi|
|00003930| 6e 61 6e 63 65 20 74 6f | 20 6d 61 6b 65 20 79 6f |nance to| make yo|
|00003940| 75 72 20 6f 77 6e 20 66 | 6f 72 20 65 61 63 68 20 |ur own f|or each |
|00003950| 6f 66 20 79 6f 75 72 20 | 6d 6f 6e 69 74 6f 72 73 |of your |monitors|
|00003960| 2e 0d 0d 4d 61 63 4d 65 | 6d 6f 72 79 2e 68 20 61 |...MacMe|mory.h a|
|00003970| 6e 64 20 4d 61 63 4d 65 | 6d 6f 72 79 2e 63 20 72 |nd MacMe|mory.c r|
|00003980| 65 64 65 66 69 6e 65 20 | 74 68 65 20 53 74 61 6e |edefine |the Stan|
|00003990| 64 61 72 64 20 43 20 6d | 65 6d 6f 72 79 20 6d 61 |dard C m|emory ma|
|000039a0| 6e 61 67 65 6d 65 6e 74 | 20 63 61 6c 6c 73 20 28 |nagement| calls (|
|000039b0| 66 72 65 65 2c 6d 61 6c | 6c 6f 63 2c 63 61 6c 6c |free,mal|loc,call|
|000039c0| 6f 63 2c 72 65 61 6c 6c | 6f 63 29 20 74 6f 20 75 |oc,reall|oc) to u|
|000039d0| 73 65 20 74 68 65 20 41 | 70 70 6c 65 20 4d 65 6d |se the A|pple Mem|
|000039e0| 6f 72 79 20 4d 61 6e 61 | 67 65 72 2c 20 62 79 70 |ory Mana|ger, byp|
|000039f0| 61 73 73 69 6e 67 20 53 | 79 6d 61 6e 74 65 63 20 |assing S|ymantec |
|00003a00| 54 48 49 4e 4b 20 43 27 | 73 20 69 6e 65 66 66 69 |THINK C'|s ineffi|
|00003a10| 63 69 65 6e 74 20 6d 65 | 6d 6f 72 79 20 6d 61 6e |cient me|mory man|
|00003a20| 61 67 65 72 2e 20 59 6f | 75 20 75 73 65 20 74 68 |ager. Yo|u use th|
|00003a30| 65 6d 20 62 79 20 61 64 | 64 69 6e 67 20 74 68 65 |em by ad|ding the|
|00003a40| 20 6c 69 6e 65 20 22 23 | 69 6e 63 6c 75 64 65 20 | line "#|include |
|00003a50| 3c 4d 61 63 4d 65 6d 6f | 72 79 2e 68 3e 22 20 74 |<MacMemo|ry.h>" t|
|00003a60| 6f 20 79 6f 75 72 20 54 | 48 49 4e 4b 20 43 20 70 |o your T|HINK C p|
|00003a70| 72 6f 6a 65 63 74 20 70 | 72 65 66 69 78 2e 0d 0d |roject p|refix...|
|00003a80| 4d 61 6b 65 4e 6f 69 73 | 65 2e 63 20 72 65 70 6c |MakeNois|e.c repl|
|00003a90| 61 63 65 64 20 62 79 20 | 4e 6f 69 73 65 46 69 6c |aced by |NoiseFil|
|00003aa0| 6c 2e 63 2e 0d 0d 4d 61 | 78 69 6d 69 7a 65 43 6f |l.c...Ma|ximizeCo|
|00003ab0| 6e 73 6f 6c 65 48 65 69 | 67 68 74 2e 63 20 63 6f |nsoleHei|ght.c co|
|00003ac0| 6e 66 69 67 75 72 65 73 | 20 74 68 65 20 54 48 49 |nfigures| the THI|
|00003ad0| 4e 4b 20 43 20 61 6e 64 | 20 43 6f 64 65 57 61 72 |NK C and| CodeWar|
|00003ae0| 72 69 6f 72 20 63 6f 6e | 73 6f 6c 65 73 20 74 6f |rior con|soles to|
|00003af0| 20 6f 70 65 6e 20 74 6f | 20 74 68 65 20 66 75 6c | open to| the ful|
|00003b00| 6c 20 68 65 69 67 68 74 | 20 6f 66 20 79 6f 75 72 |l height| of your|
|00003b10| 20 6d 61 69 6e 20 73 63 | 72 65 65 6e 2e 20 49 74 | main sc|reen. It|
|00003b20| 20 61 6c 73 6f 20 73 65 | 74 73 20 74 68 65 20 64 | also se|ts the d|
|00003b30| 65 66 61 75 6c 74 20 6f | 70 74 69 6f 6e 73 20 6f |efault o|ptions o|
|00003b40| 66 20 74 68 65 20 43 6f | 64 65 57 61 72 72 69 6f |f the Co|deWarrio|
|00003b50| 72 20 63 6f 6e 73 6f 6c | 65 20 74 6f 20 62 65 68 |r consol|e to beh|
|00003b60| 61 76 65 20 6c 69 6b 65 | 20 74 68 65 20 54 48 49 |ave like| the THI|
|00003b70| 4e 4b 20 43 20 63 6f 6e | 73 6f 6c 65 2e 0d 0d 6d |NK C con|sole...m|
|00003b80| 63 36 38 38 38 31 2e 68 | 20 64 65 66 69 6e 65 73 |c68881.h| defines|
|00003b90| 20 4d 50 57 20 43 27 73 | 20 6d 63 36 38 38 38 31 | MPW C's| mc68881|
|00003ba0| 20 61 6e 64 20 6d 63 36 | 38 30 32 30 20 70 72 65 | and mc6|8020 pre|
|00003bb0| 70 72 6f 63 65 73 73 6f | 72 20 73 79 6d 62 6f 6c |processo|r symbol|
|00003bc0| 73 20 66 6f 72 20 54 48 | 49 4e 4b 20 43 2c 20 73 |s for TH|INK C, s|
|00003bd0| 6f 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 73 20 |o your p|rograms |
|00003be0| 63 61 6e 20 75 73 65 20 | 74 68 65 6d 20 69 6e 20 |can use |them in |
|00003bf0| 22 69 66 22 20 73 74 61 | 74 65 6d 65 6e 74 73 20 |"if" sta|tements |
|00003c00| 77 69 74 68 6f 75 74 20 | 77 6f 72 72 79 69 6e 67 |without |worrying|
|00003c10| 20 61 62 6f 75 74 20 77 | 68 69 63 68 20 63 6f 6d | about w|hich com|
|00003c20| 70 69 6c 65 72 20 79 6f | 75 27 72 65 20 75 73 69 |piler yo|u're usi|
|00003c30| 6e 67 2e 20 54 68 65 20 | 73 79 6d 62 6f 6c 73 20 |ng. The |symbols |
|00003c40| 61 72 65 20 31 20 28 69 | 2e 65 2e 20 74 72 75 65 |are 1 (i|.e. true|
|00003c50| 29 20 69 66 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |) if the| compile|
|00003c60| 64 20 63 6f 64 65 20 72 | 65 71 75 69 72 65 73 20 |d code r|equires |
|00003c70| 74 68 65 20 63 68 69 70 | 20 28 6f 72 20 62 65 74 |the chip| (or bet|
|00003c80| 74 65 72 29 20 61 6e 64 | 20 30 20 6f 74 68 65 72 |ter) and| 0 other|
|00003c90| 77 69 73 65 2e 0d 0d 4d | 65 61 6e 2e 63 20 63 6f |wise...M|ean.c co|
|00003ca0| 6d 70 75 74 65 73 20 6d | 65 61 6e 20 28 61 6e 64 |mputes m|ean (and|
|00003cb0| 20 6f 70 74 69 6f 6e 61 | 6c 6c 79 20 74 68 65 20 | optiona|lly the |
|00003cc0| 73 74 61 6e 64 61 72 64 | 20 64 65 76 69 61 74 69 |standard| deviati|
|00003cd0| 6f 6e 29 20 6f 66 20 61 | 6e 20 61 72 72 61 79 20 |on) of a|n array |
|00003ce0| 6f 66 20 73 61 6d 70 6c | 65 73 20 28 65 69 74 68 |of sampl|es (eith|
|00003cf0| 65 72 20 64 6f 75 62 6c | 65 73 2c 20 6f 72 20 73 |er doubl|es, or s|
|00003d00| 69 67 6e 65 64 20 6f 72 | 20 75 6e 73 69 67 6e 65 |igned or| unsigne|
|00003d10| 64 20 63 68 61 72 2c 20 | 73 68 6f 72 74 2c 20 6f |d char, |short, o|
|00003d20| 72 20 6c 6f 6e 67 29 2e | 0d 0d 4d 6f 76 65 4d 6f |r long).|..MoveMo|
|00003d30| 75 73 65 2e 63 2c 20 66 | 72 6f 6d 20 41 70 70 6c |use.c, f|rom Appl|
|00003d40| 65 2c 20 64 6f 63 75 6d | 65 6e 74 73 20 74 68 65 |e, docum|ents the|
|00003d50| 69 72 20 6e 65 77 20 43 | 75 72 73 6f 72 20 44 65 |ir new C|ursor De|
|00003d60| 76 69 63 65 20 4d 61 6e | 61 67 65 72 2e 0d 0d 4e |vice Man|ager...N|
|00003d70| 61 6e 2e 63 20 64 65 66 | 69 6e 65 73 20 61 20 67 |an.c def|ines a g|
|00003d80| 6c 6f 62 61 6c 20 63 6f | 6e 73 74 61 6e 74 20 77 |lobal co|nstant w|
|00003d90| 69 74 68 20 74 68 65 20 | 76 61 6c 75 65 20 4e 41 |ith the |value NA|
|00003da0| 4e 2e 20 28 44 65 66 69 | 6e 69 6e 67 20 4e 41 4e |N. (Defi|ning NAN|
|00003db0| 20 61 73 20 28 30 2e 30 | 2f 30 2e 30 29 20 77 61 | as (0.0|/0.0) wa|
|00003dc0| 73 74 65 73 20 72 75 6e | 74 69 6d 65 2c 20 61 6e |stes run|time, an|
|00003dd0| 64 20 73 6f 6d 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |d some e|nvironme|
|00003de0| 6e 74 73 2c 20 65 2e 67 | 2e 20 74 68 65 20 54 48 |nts, e.g|. the TH|
|00003df0| 49 4e 4b 20 43 20 44 65 | 62 62 75 67 65 72 20 72 |INK C De|bbuger r|
|00003e00| 75 6e 6e 69 6e 67 20 6f | 6e 20 61 20 50 6f 77 65 |unning o|n a Powe|
|00003e10| 72 42 6f 6f 6b 2c 20 68 | 61 76 65 20 74 72 6f 75 |rBook, h|ave trou|
|00003e20| 62 6c 65 20 65 76 61 6c | 75 61 74 69 6e 67 20 30 |ble eval|uating 0|
|00003e30| 2e 30 2f 30 2e 30 2e 29 | 0d 0d 20 20 20 20 65 72 |.0/0.0.)|.. er|
|00003e40| 72 6f 72 3d 4e 6f 69 73 | 65 46 69 6c 6c 28 77 69 |ror=Nois|eFill(wi|
|00003e50| 6e 64 6f 77 2c 26 72 65 | 63 74 2c 64 78 2c 64 79 |ndow,&re|ct,dx,dy|
|00003e60| 2c 72 61 6e 64 6f 6d 50 | 68 61 73 65 29 3b 20 0d |,randomP|hase); .|
|00003e70| 4e 6f 69 73 65 46 69 6c | 6c 2e 63 20 66 69 6c 6c |NoiseFil|l.c fill|
|00003e80| 73 20 74 68 65 20 72 65 | 63 74 20 69 6e 20 74 68 |s the re|ct in th|
|00003e90| 65 20 77 69 6e 64 6f 77 | 20 77 69 74 68 20 61 20 |e window| with a |
|00003ea0| 72 61 6e 64 6f 6d 20 63 | 68 65 63 6b 65 72 62 6f |random c|heckerbo|
|00003eb0| 61 72 64 2c 20 69 2e 65 | 2e 20 62 6c 61 63 6b 20 |ard, i.e|. black |
|00003ec0| 26 20 77 68 69 74 65 20 | 63 68 65 63 6b 73 2c 20 |& white |checks, |
|00003ed0| 65 61 63 68 20 64 78 20 | 70 69 78 65 6c 73 20 77 |each dx |pixels w|
|00003ee0| 69 64 65 20 62 79 20 64 | 79 20 70 69 78 65 6c 73 |ide by d|y pixels|
|00003ef0| 20 68 69 67 68 2e 20 52 | 61 6e 64 6f 6d 20 70 68 | high. R|andom ph|
|00003f00| 61 73 65 20 69 73 20 6f | 70 74 69 6f 6e 61 6c 2e |ase is o|ptional.|
|00003f10| 20 28 64 78 20 61 6e 64 | 0d 64 79 20 61 72 65 20 | (dx and|.dy are |
|00003f20| 64 6f 75 62 6c 65 73 2c | 20 61 6e 64 20 6e 65 65 |doubles,| and nee|
|00003f30| 64 20 6e 6f 74 20 62 65 | 20 69 6e 74 65 67 72 61 |d not be| integra|
|00003f40| 6c 2e 20 54 68 65 20 6e | 6f 69 73 65 20 69 73 20 |l. The n|oise is |
|00003f50| 73 79 6e 74 68 65 73 69 | 7a 65 64 20 77 69 74 68 |synthesi|zed with|
|00003f60| 20 31 2d 70 69 78 65 6c | 0d 63 68 65 63 6b 73 20 | 1-pixel|.checks |
|00003f70| 61 6e 64 20 65 78 70 61 | 6e 64 65 64 20 62 79 20 |and expa|nded by |
|00003f80| 43 6f 70 79 42 69 74 73 | 2c 20 77 68 69 63 68 20 |CopyBits|, which |
|00003f90| 69 73 20 63 61 70 61 62 | 6c 65 20 6f 66 20 65 78 |is capab|le of ex|
|00003fa0| 70 61 6e 73 69 6f 6e 20 | 62 79 20 6e 6f 6e 2d 69 |pansion |by non-i|
|00003fb0| 6e 74 65 67 72 61 6c 0d | 61 6d 6f 75 6e 74 73 2e |ntegral.|amounts.|
|00003fc0| 29 20 4e 6f 69 73 65 46 | 69 6c 6c 42 69 74 73 28 |) NoiseF|illBits(|
|00003fd0| 70 69 78 6d 61 70 50 74 | 72 2c 26 72 65 63 74 2c |pixmapPt|r,&rect,|
|00003fe0| 64 78 2c 64 79 2c 72 61 | 6e 64 6f 6d 50 68 61 73 |dx,dy,ra|ndomPhas|
|00003ff0| 65 29 20 69 73 20 73 69 | 6d 69 6c 61 72 2c 20 62 |e) is si|milar, b|
|00004000| 75 74 20 61 63 63 65 70 | 74 73 20 61 20 70 69 78 |ut accep|ts a pix|
|00004010| 2f 62 69 74 6d 61 70 20 | 70 74 72 20 69 6e 20 70 |/bitmap |ptr in p|
|00004020| 6c 61 63 65 20 6f 66 20 | 74 68 65 20 77 69 6e 64 |lace of |the wind|
|00004030| 6f 77 2e 20 4d 61 6b 65 | 4e 6f 69 73 65 31 28 64 |ow. Make|Noise1(d|
|00004040| 78 2c 64 79 2c 72 61 6e | 64 6f 6d 50 68 61 73 65 |x,dy,ran|domPhase|
|00004050| 2c 70 69 78 6d 61 70 50 | 74 72 29 0d 69 73 20 6f |,pixmapP|tr).is o|
|00004060| 62 73 6f 6c 65 74 65 2c | 20 72 65 74 61 69 6e 65 |bsolete,| retaine|
|00004070| 64 20 73 6f 6c 65 6c 79 | 20 66 6f 72 20 63 6f 6d |d solely| for com|
|00004080| 70 61 74 69 62 69 6c 69 | 74 79 2e 20 54 72 79 20 |patibili|ty. Try |
|00004090| 74 68 65 20 64 65 6d 6f | 73 20 53 61 6e 64 73 74 |the demo|s Sandst|
|000040a0| 6f 72 6d 20 61 6e 64 20 | 4e 6f 69 73 65 56 42 4c |orm and |NoiseVBL|
|000040b0| 2e 0d 0d 20 20 20 20 65 | 72 72 6f 72 3d 4e 6f 69 |... e|rror=Noi|
|000040c0| 73 65 50 64 66 46 69 6c | 6c 28 77 6f 72 6c 64 2c |sePdfFil|l(world,|
|000040d0| 26 72 65 63 74 2c 70 64 | 66 4b 69 6e 64 2c 26 6d |&rect,pd|fKind,&m|
|000040e0| 65 61 6e 2c 26 73 64 2c | 6d 69 6e 2c 6d 61 78 29 |ean,&sd,|min,max)|
|000040f0| 3b 0d 20 20 20 20 65 72 | 72 6f 72 3d 4e 6f 69 73 |;. er|ror=Nois|
|00004100| 65 50 64 66 41 64 64 28 | 77 6f 72 6c 64 2c 26 72 |ePdfAdd(|world,&r|
|00004110| 65 63 74 2c 70 64 66 4b | 69 6e 64 2c 26 6d 65 61 |ect,pdfK|ind,&mea|
|00004120| 6e 2c 26 73 64 2c 6d 69 | 6e 2c 6d 61 78 29 3b 0d |n,&sd,mi|n,max);.|
|00004130| 4e 6f 69 73 65 50 64 66 | 46 69 6c 6c 2e 63 3a 20 |NoisePdf|Fill.c: |
|00004140| 46 61 73 74 20 63 6f 64 | 65 20 74 6f 20 67 65 6e |Fast cod|e to gen|
|00004150| 65 72 61 74 65 20 6e 6f | 69 73 65 20 69 6d 61 67 |erate no|ise imag|
|00004160| 65 73 2e 20 59 6f 75 20 | 73 75 70 70 6c 79 20 61 |es. You |supply a|
|00004170| 20 47 57 6f 72 6c 64 20 | 28 6f 72 20 61 20 77 69 | GWorld |(or a wi|
|00004180| 6e 64 6f 77 29 20 61 6e | 64 20 61 20 72 65 63 74 |ndow) an|d a rect|
|00004190| 20 69 6e 64 69 63 61 74 | 69 6e 67 20 68 6f 77 20 | indicat|ing how |
|000041a0| 6d 75 63 68 20 6f 66 20 | 69 74 20 74 6f 20 66 69 |much of |it to fi|
|000041b0| 6c 6c 20 77 69 74 68 20 | 6e 6f 69 73 65 2e 20 28 |ll with |noise. (|
|000041c0| 4e 6f 69 73 65 50 64 66 | 46 69 6c 6c 20 6f 76 65 |NoisePdf|Fill ove|
|000041d0| 72 77 72 69 74 65 73 20 | 61 6e 79 20 70 72 65 2d |rwrites |any pre-|
|000041e0| 65 78 69 73 74 69 6e 67 | 20 69 6d 61 67 65 3b 20 |existing| image; |
|000041f0| 4e 6f 69 73 65 50 64 66 | 41 64 64 20 61 64 64 73 |NoisePdf|Add adds|
|00004200| 20 74 6f 20 69 74 2e 29 | 20 45 61 63 68 20 70 69 | to it.)| Each pi|
|00004210| 78 65 6c 20 77 69 6c 6c | 20 67 65 74 20 61 6e 20 |xel will| get an |
|00004220| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 28 69 6e 74 |independ|ent (int|
|00004230| 65 67 65 72 29 20 73 61 | 6d 70 6c 65 20 66 72 6f |eger) sa|mple fro|
|00004240| 6d 20 61 20 73 70 65 63 | 69 66 69 65 64 20 70 72 |m a spec|ified pr|
|00004250| 6f 62 61 62 69 6c 69 74 | 79 20 64 65 6e 73 69 74 |obabilit|y densit|
|00004260| 79 20 66 75 6e 63 74 69 | 6f 6e 20 28 70 64 66 29 |y functi|on (pdf)|
|00004270| 3a 20 6b 42 69 6e 61 72 | 79 50 64 66 2c 20 6b 55 |: kBinar|yPdf, kU|
|00004280| 6e 69 66 6f 72 6d 50 64 | 66 2c 20 6b 42 69 6e 6f |niformPd|f, kBino|
|00004290| 6d 69 61 6c 50 64 66 2c | 20 6f 72 20 6b 47 61 75 |mialPdf,| or kGau|
|000042a0| 73 73 69 61 6e 50 64 66 | 2e 20 54 68 65 20 73 70 |ssianPdf|. The sp|
|000042b0| 65 63 69 66 69 65 64 20 | 70 64 66 20 69 73 20 63 |ecified |pdf is c|
|000042c0| 6c 69 70 70 65 64 20 62 | 79 20 74 68 65 20 73 70 |lipped b|y the sp|
|000042d0| 65 63 69 66 69 65 64 20 | 6d 69 6e 20 61 6e 64 20 |ecified |min and |
|000042e0| 6d 61 78 2c 20 74 6f 20 | 70 72 65 63 6c 75 64 65 |max, to |preclude|
|000042f0| 20 6f 76 65 72 66 6c 6f | 77 20 69 6e 20 79 6f 75 | overflo|w in you|
|00004300| 72 20 69 6d 61 67 65 20 | 70 69 78 65 6c 73 2e 0d |r image |pixels..|
|00004310| 0d 4e 6f 72 6d 61 6c 2e | 63 20 63 6f 6d 70 75 74 |.Normal.|c comput|
|00004320| 65 73 20 74 68 65 20 70 | 72 6f 62 61 62 69 6c 69 |es the p|robabili|
|00004330| 74 79 20 64 65 6e 73 69 | 74 79 2c 20 63 75 6d 75 |ty densi|ty, cumu|
|00004340| 6c 61 74 69 76 65 20 64 | 69 73 74 72 69 62 75 74 |lative d|istribut|
|00004350| 69 6f 6e 2c 20 61 6e 64 | 20 69 6e 76 65 72 73 65 |ion, and| inverse|
|00004360| 20 63 75 6d 75 6c 61 74 | 69 76 65 20 64 69 73 74 | cumulat|ive dist|
|00004370| 72 69 62 75 74 69 6f 6e | 20 66 6f 72 20 74 68 65 |ribution| for the|
|00004380| 20 6e 6f 72 6d 61 6c 20 | 64 69 73 74 72 69 62 75 | normal |distribu|
|00004390| 74 69 6f 6e 2e 20 42 6f | 75 6e 64 65 64 4e 6f 72 |tion. Bo|undedNor|
|000043a0| 6d 61 6c 49 6e 74 65 67 | 65 72 73 28 64 69 73 74 |malInteg|ers(dist|
|000043b0| 72 69 62 75 74 69 6f 6e | 2c 6e 2c 6d 65 61 6e 2c |ribution|,n,mean,|
|000043c0| 73 64 2c 6d 69 6e 2c 6d | 61 78 29 20 66 69 6c 6c |sd,min,m|ax) fill|
|000043d0| 73 20 74 68 65 20 22 64 | 69 73 74 72 69 62 75 74 |s the "d|istribut|
|000043e0| 69 6f 6e 22 20 61 72 72 | 61 79 20 77 69 74 68 20 |ion" arr|ay with |
|000043f0| 6e 20 6f 72 64 65 72 65 | 64 20 69 6e 74 65 67 65 |n ordere|d intege|
|00004400| 72 73 20 73 6f 20 74 68 | 61 74 20 72 61 6e 64 6f |rs so th|at rando|
|00004410| 6d 20 73 61 6d 70 6c 65 | 73 20 66 72 6f 6d 20 74 |m sample|s from t|
|00004420| 68 65 20 61 72 72 61 79 | 2c 20 69 3d 64 69 73 74 |he array|, i=dist|
|00004430| 72 69 62 75 74 69 6f 6e | 5b 6e 72 61 6e 64 28 6e |ribution|[nrand(n|
|00004440| 29 5d 20 77 69 6c 6c 20 | 62 65 20 73 61 6d 70 6c |)] will |be sampl|
|00004450| 65 73 20 66 72 6f 6d 20 | 61 20 62 6f 75 6e 64 65 |es from |a bounde|
|00004460| 64 20 6e 6f 72 6d 61 6c | 20 64 69 73 74 72 69 62 |d normal| distrib|
|00004470| 75 74 69 6f 6e 2e 0d 0d | 6e 72 61 6e 64 2e 63 2c |ution...|nrand.c,|
|00004480| 20 6e 72 61 6e 64 28 6e | 29 20 72 65 74 75 72 6e | nrand(n|) return|
|00004490| 73 20 61 20 72 61 6e 64 | 6f 6d 20 69 6e 74 65 67 |s a rand|om integ|
|000044a0| 65 72 20 69 6e 20 74 68 | 65 20 72 61 6e 67 65 20 |er in th|e range |
|000044b0| 5b 30 2c 6e 2d 31 5d 2e | 20 0d 0d 4f 70 65 6e 44 |[0,n-1].| ..OpenD|
|000044c0| 61 74 61 46 69 6c 65 2e | 63 20 6f 70 65 6e 73 20 |ataFile.|c opens |
|000044d0| 61 20 70 61 72 61 6d 65 | 74 65 72 20 66 69 6c 65 |a parame|ter file|
|000044e0| 20 66 6f 72 20 69 6e 70 | 75 74 20 61 6e 64 20 61 | for inp|ut and a|
|000044f0| 20 64 61 74 61 20 66 69 | 6c 65 20 66 6f 72 20 6f | data fi|le for o|
|00004500| 75 74 70 75 74 2e 20 4f | 75 74 70 75 74 20 66 69 |utput. O|utput fi|
|00004510| 6c 65 20 6e 61 6d 65 20 | 69 6e 63 6c 75 64 65 73 |le name |includes|
|00004520| 20 61 20 74 69 6d 65 20 | 73 74 61 6d 70 2c 20 6d | a time |stamp, m|
|00004530| 61 6b 69 6e 67 20 69 74 | 20 75 6e 69 71 75 65 2e |aking it| unique.|
|00004540| 0d 0d 4f 70 65 6e 50 72 | 65 66 65 72 65 6e 63 65 |..OpenPr|eference|
|00004550| 73 46 6f 6c 64 65 72 2e | 63 20 6f 70 65 6e 73 20 |sFolder.|c opens |
|00004560| 74 68 65 20 50 72 65 66 | 65 72 65 6e 63 65 73 20 |the Pref|erences |
|00004570| 66 6f 6c 64 65 72 20 69 | 6e 20 74 68 65 20 53 79 |folder i|n the Sy|
|00004580| 73 74 65 6d 20 46 6f 6c | 64 65 72 2c 20 63 72 65 |stem Fol|der, cre|
|00004590| 61 74 69 6e 67 20 69 74 | 20 69 66 20 6e 65 63 65 |ating it| if nece|
|000045a0| 73 73 61 72 79 2e 0d 0d | 50 69 78 4d 61 70 54 6f |ssary...|PixMapTo|
|000045b0| 50 49 43 54 2e 63 20 73 | 61 76 65 73 20 61 20 73 |PICT.c s|aves a s|
|000045c0| 65 63 74 69 6f 6e 20 6f | 66 20 61 20 50 69 78 4d |ection o|f a PixM|
|000045d0| 61 70 20 61 73 20 61 20 | 50 49 43 54 20 66 69 6c |ap as a |PICT fil|
|000045e0| 65 2e 20 41 6c 73 6f 20 | 73 65 65 20 57 69 6e 64 |e. Also |see Wind|
|000045f0| 6f 77 54 6f 45 50 53 2e | 63 2c 20 62 65 6c 6f 77 |owToEPS.|c, below|
|00004600| 2e 20 54 72 79 20 74 68 | 65 20 64 65 6d 6f 20 47 |. Try th|e demo G|
|00004610| 72 61 74 69 6e 67 2e 0d | 0d 50 69 78 4d 61 70 54 |rating..|.PixMapT|
|00004620| 6f 50 6f 73 74 53 63 72 | 69 70 74 2e 63 20 77 69 |oPostScr|ipt.c wi|
|00004630| 6c 6c 20 63 6f 6e 76 65 | 72 74 20 61 20 67 72 61 |ll conve|rt a gra|
|00004640| 79 73 63 61 6c 65 20 69 | 6d 61 67 65 20 74 6f 20 |yscale i|mage to |
|00004650| 61 20 70 6f 73 74 73 63 | 72 69 70 74 20 66 69 6c |a postsc|ript fil|
|00004660| 65 20 73 75 69 74 61 62 | 6c 65 20 66 6f 72 20 70 |e suitab|le for p|
|00004670| 72 69 6e 74 69 6e 67 20 | 6f 6e 20 61 20 4c 61 73 |rinting |on a Las|
|00004680| 65 72 57 72 69 74 65 72 | 20 6f 72 20 4c 69 6e 6f |erWriter| or Lino|
|00004690| 74 79 70 65 2e 20 4d 6f | 73 74 20 75 73 65 72 20 |type. Mo|st user |
|000046a0| 77 69 6c 6c 20 70 72 65 | 66 65 72 20 74 6f 20 75 |will pre|fer to u|
|000046b0| 73 65 20 74 68 65 20 6e | 65 77 65 72 20 57 69 6e |se the n|ewer Win|
|000046c0| 64 6f 77 54 6f 45 50 53 | 2c 20 62 65 6c 6f 77 2e |dowToEPS|, below.|
|000046d0| 0d 0d 50 6c 6f 74 58 59 | 2e 63 20 69 73 20 68 61 |..PlotXY|.c is ha|
|000046e0| 6e 64 79 20 66 6f 72 20 | 61 20 71 75 69 63 6b 20 |ndy for |a quick |
|000046f0| 73 63 72 65 65 6e 20 70 | 6c 6f 74 2c 20 65 73 70 |screen p|lot, esp|
|00004700| 65 63 69 61 6c 6c 79 20 | 6f 66 20 69 6e 63 6f 6d |ecially |of incom|
|00004710| 69 6e 67 20 64 61 74 61 | 2e 20 49 74 20 70 6c 6f |ing data|. It plo|
|00004720| 74 73 20 6f 6e 65 20 70 | 6f 69 6e 74 20 61 74 20 |ts one p|oint at |
|00004730| 61 20 74 69 6d 65 2c 20 | 61 6e 64 20 64 6f 65 73 |a time, |and does|
|00004740| 20 6c 69 6e 65 73 2c 20 | 69 6e 20 65 69 67 68 74 | lines, |in eight|
|00004750| 20 63 6f 6c 6f 72 73 2c | 20 77 69 74 68 20 6f 70 | colors,| with op|
|00004760| 74 69 6f 6e 61 6c 20 64 | 61 73 68 69 6e 67 2c 20 |tional d|ashing, |
|00004770| 61 6e 64 20 6f 70 74 69 | 6f 6e 61 6c 20 73 79 6d |and opti|onal sym|
|00004780| 62 6f 6c 73 2e 20 55 73 | 65 64 20 62 79 20 4d 65 |bols. Us|ed by Me|
|00004790| 61 73 75 72 65 4d 54 46 | 20 66 6f 72 20 6f 6e 6c |asureMTF| for onl|
|000047a0| 69 6e 65 20 64 69 73 70 | 6c 61 79 2e 0d 0d 50 72 |ine disp|lay...Pr|
|000047b0| 69 6e 74 66 45 78 69 74 | 2e 63 20 70 72 69 6e 74 |intfExit|.c print|
|000047c0| 73 20 6f 75 74 20 61 6e | 20 65 72 72 6f 72 20 6d |s out an| error m|
|000047d0| 65 73 73 61 67 65 20 61 | 6e 64 20 65 78 69 74 73 |essage a|nd exits|
|000047e0| 2e 0d 0d 50 72 69 6e 74 | 66 47 57 6f 72 6c 64 2e |...Print|fGWorld.|
|000047f0| 63 2c 20 66 6f 72 20 64 | 65 62 75 67 67 69 6e 67 |c, for d|ebugging|
|00004800| 2c 20 75 73 65 73 20 22 | 70 72 69 6e 74 66 22 20 |, uses "|printf" |
|00004810| 74 6f 20 70 72 69 6e 74 | 20 6f 75 74 20 74 68 65 |to print| out the|
|00004820| 20 47 57 6f 72 6c 64 20 | 61 73 20 61 20 67 72 6f | GWorld |as a gro|
|00004830| 73 73 20 62 69 74 6d 61 | 70 2e 0d 0d 51 44 33 32 |ss bitma|p...QD32|
|00004840| 45 78 69 73 74 73 2e 63 | 20 64 65 74 65 72 6d 69 |Exists.c| determi|
|00004850| 6e 65 73 20 77 68 65 74 | 68 65 72 20 33 32 2d 62 |nes whet|her 32-b|
|00004860| 69 74 20 51 75 69 63 6b | 44 72 61 77 20 68 61 73 |it Quick|Draw has|
|00004870| 20 62 65 65 6e 20 69 6e | 73 74 61 6c 6c 65 64 2e | been in|stalled.|
|00004880| 20 51 44 38 45 78 69 73 | 74 73 28 29 20 64 65 74 | QD8Exis|ts() det|
|00004890| 65 72 6d 69 6e 65 73 20 | 77 68 65 74 68 65 72 20 |ermines |whether |
|000048a0| 63 6f 6c 6f 72 20 51 75 | 69 63 6b 44 72 61 77 20 |color Qu|ickDraw |
|000048b0| 69 73 20 70 72 65 73 65 | 6e 74 2e 20 4e 65 77 50 |is prese|nt. NewP|
|000048c0| 61 6c 65 74 74 65 4d 61 | 6e 61 67 65 72 28 29 20 |aletteMa|nager() |
|000048d0| 64 65 74 65 72 6d 69 6e | 65 73 20 77 68 65 74 68 |determin|es wheth|
|000048e0| 65 72 20 74 68 65 20 6e | 65 77 20 70 61 6c 65 74 |er the n|ew palet|
|000048f0| 74 65 20 6d 61 6e 61 67 | 65 72 20 28 64 6f 63 75 |te manag|er (docu|
|00004900| 6d 65 6e 74 65 64 20 69 | 6e 20 49 6e 73 69 64 65 |mented i|n Inside|
|00004910| 20 4d 61 63 20 76 6f 6c | 75 6d 65 20 56 49 29 20 | Mac vol|ume VI) |
|00004920| 69 73 20 70 72 65 73 65 | 6e 74 2e 20 54 68 65 73 |is prese|nt. Thes|
|00004930| 65 20 72 6f 75 74 69 6e | 65 73 20 68 61 76 65 20 |e routin|es have |
|00004940| 6e 6f 20 73 69 67 6e 69 | 66 69 63 61 6e 74 20 61 |no signi|ficant a|
|00004950| 64 76 61 6e 74 61 67 65 | 20 6f 76 65 72 20 41 70 |dvantage| over Ap|
|00004960| 70 6c 65 27 73 20 47 65 | 73 74 61 6c 74 28 29 2c |ple's Ge|stalt(),|
|00004970| 20 77 68 69 63 68 20 63 | 61 6d 65 20 6c 61 74 65 | which c|ame late|
|00004980| 72 2e 0d 0d 72 61 6e 64 | 55 2e 63 20 69 73 20 61 |r...rand|U.c is a|
|00004990| 20 66 61 73 74 20 31 36 | 2d 62 69 74 20 72 61 6e | fast 16|-bit ran|
|000049a0| 64 6f 6d 20 6e 75 6d 62 | 65 72 20 67 65 6e 65 72 |dom numb|er gener|
|000049b0| 61 74 6f 72 2e 20 72 61 | 6e 64 55 4c 28 29 20 72 |ator. ra|ndUL() r|
|000049c0| 65 74 75 72 6e 73 20 61 | 20 33 32 2d 62 69 74 20 |eturns a| 32-bit |
|000049d0| 72 61 6e 64 6f 6d 20 6e | 75 6d 62 65 72 2e 20 28 |random n|umber. (|
|000049e0| 54 68 65 20 53 74 61 6e | 64 61 72 64 20 43 20 72 |The Stan|dard C r|
|000049f0| 61 6e 64 28 29 20 70 72 | 6f 76 69 64 65 73 20 6f |and() pr|ovides o|
|00004a00| 6e 6c 79 20 31 35 20 62 | 69 74 73 2e 29 20 52 61 |nly 15 b|its.) Ra|
|00004a10| 6e 64 46 69 6c 6c 28 29 | 20 71 75 69 63 6b 6c 79 |ndFill()| quickly|
|00004a20| 20 66 69 6c 6c 73 20 61 | 20 62 75 66 66 65 72 20 | fills a| buffer |
|00004a30| 6f 66 20 61 6e 79 20 73 | 69 7a 65 20 77 69 74 68 |of any s|ize with|
|00004a40| 20 72 61 6e 64 6f 6d 20 | 62 69 74 73 2e 20 55 73 | random |bits. Us|
|00004a50| 65 64 20 62 79 20 4d 61 | 6b 65 4e 6f 69 73 65 2e |ed by Ma|keNoise.|
|00004a60| 20 54 72 79 20 74 68 65 | 20 64 65 6d 6f 73 20 53 | Try the| demos S|
|00004a70| 61 6e 64 73 74 6f 72 6d | 2c 20 4e 6f 69 73 65 56 |andstorm|, NoiseV|
|00004a80| 42 4c 2c 20 61 6e 64 20 | 54 69 6d 65 43 50 55 2e |BL, and |TimeCPU.|
|00004a90| 0d 0d 52 65 61 64 4c 75 | 6d 69 6e 61 6e 63 65 52 |..ReadLu|minanceR|
|00004aa0| 65 63 6f 72 64 2e 63 20 | 69 6e 74 65 72 70 72 65 |ecord.c |interpre|
|00004ab0| 74 73 20 61 20 4c 75 6d | 69 6e 61 6e 63 65 52 65 |ts a Lum|inanceRe|
|00004ac0| 63 6f 72 64 3f 2e 68 20 | 66 69 6c 65 20 61 74 20 |cord?.h |file at |
|00004ad0| 72 75 6e 74 69 6d 65 2e | 0d 0d 52 65 61 64 4d 41 |runtime.|..ReadMA|
|00004ae0| 54 4c 41 42 46 69 6c 65 | 2e 63 20 61 6c 6c 6f 77 |TLABFile|.c allow|
|00004af0| 73 20 79 6f 75 20 74 6f | 20 72 65 61 64 20 61 6e |s you to| read an|
|00004b00| 64 20 77 72 69 74 65 20 | 4d 41 54 4c 41 42 20 62 |d write |MATLAB b|
|00004b10| 69 6e 61 72 79 20 64 61 | 74 61 20 66 69 6c 65 73 |inary da|ta files|
|00004b20| 2e 20 4d 41 54 4c 41 42 | 20 69 73 20 61 20 63 6f |. MATLAB| is a co|
|00004b30| 6d 6d 65 72 63 69 61 6c | 20 61 70 70 6c 69 63 61 |mmercial| applica|
|00004b40| 74 69 6f 6e 2c 20 73 6f | 72 74 20 6f 66 20 6c 69 |tion, so|rt of li|
|00004b50| 6b 65 20 42 41 53 49 43 | 20 72 65 77 72 69 74 74 |ke BASIC| rewritt|
|00004b60| 65 6e 20 62 79 20 73 6f | 6d 65 6f 6e 65 20 77 68 |en by so|meone wh|
|00004b70| 6f 20 6c 69 6b 65 73 20 | 6c 69 6e 65 61 72 20 61 |o likes |linear a|
|00004b80| 6c 67 65 62 72 61 2e 20 | 52 65 61 64 4d 41 54 4c |lgebra. |ReadMATL|
|00004b90| 41 42 46 69 6c 65 2e 63 | 20 69 73 20 62 61 73 65 |ABFile.c| is base|
|00004ba0| 64 20 6f 6e 20 63 6f 64 | 65 20 77 72 69 74 74 65 |d on cod|e writte|
|00004bb0| 6e 20 62 79 20 4a 2e 4e | 2e 20 4c 69 74 74 6c 65 |n by J.N|. Little|
|00004bc0| 2e 0d 0d 52 65 63 74 54 | 6f 41 64 64 72 65 73 73 |...RectT|oAddress|
|00004bd0| 2e 63 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6d |.c retur|ns the m|
|00004be0| 65 6d 6f 72 79 20 61 64 | 64 72 65 73 73 20 6f 66 |emory ad|dress of|
|00004bf0| 20 74 68 65 20 70 69 78 | 65 6c 20 69 6e 20 61 20 | the pix|el in a |
|00004c00| 50 69 78 4d 61 70 20 6f | 72 20 42 69 74 4d 61 70 |PixMap o|r BitMap|
|00004c10| 2e 20 49 74 20 61 6c 77 | 61 79 73 20 77 6f 72 6b |. It alw|ays work|
|00004c20| 73 2c 20 64 65 61 6c 69 | 6e 67 20 63 6f 72 72 65 |s, deali|ng corre|
|00004c30| 63 74 6c 79 20 77 69 74 | 68 20 61 20 77 68 6f 6c |ctly wit|h a whol|
|00004c40| 65 20 73 6c 65 77 20 6f | 66 20 73 70 65 63 69 61 |e slew o|f specia|
|00004c50| 6c 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 73 |l config|urations|
|00004c60| 2e 20 55 73 65 64 20 62 | 79 20 43 6f 70 79 42 69 |. Used b|y CopyBi|
|00004c70| 74 73 51 75 69 63 6b 6c | 79 2e 20 47 65 74 50 69 |tsQuickl|y. GetPi|
|00004c80| 78 42 61 73 65 41 64 64 | 72 33 32 28 50 69 78 4d |xBaseAdd|r32(PixM|
|00004c90| 61 70 20 2a 2a 70 6d 29 | 20 72 65 74 75 72 6e 73 |ap **pm)| returns|
|00004ca0| 20 74 68 65 20 33 32 2d | 62 69 74 20 61 64 64 72 | the 32-|bit addr|
|00004cb0| 65 73 73 20 6f 66 20 74 | 68 65 20 70 69 78 65 6c |ess of t|he pixel|
|00004cc0| 73 2f 62 69 74 73 20 69 | 6e 20 61 20 70 69 78 2f |s/bits i|n a pix/|
|00004cd0| 62 69 74 6d 61 70 2e 20 | 49 20 73 75 67 67 65 73 |bitmap. |I sugges|
|00004ce0| 74 20 79 6f 75 20 63 61 | 6c 6c 20 47 65 74 50 69 |t you ca|ll GetPi|
|00004cf0| 78 42 61 73 65 41 64 64 | 72 33 32 20 69 6e 73 74 |xBaseAdd|r32 inst|
|00004d00| 65 61 64 20 6f 66 20 41 | 70 70 6c 65 27 73 20 47 |ead of A|pple's G|
|00004d10| 65 74 50 69 78 42 61 73 | 65 41 64 64 72 28 29 2c |etPixBas|eAddr(),|
|00004d20| 20 77 68 69 63 68 20 67 | 61 76 65 20 77 72 6f 6e | which g|ave wron|
|00004d30| 67 20 72 65 73 75 6c 74 | 73 20 69 6e 20 65 61 72 |g result|s in ear|
|00004d40| 6c 79 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 33 32 |ly versi|on of 32|
|00004d50| 2d 62 69 74 20 71 75 69 | 63 6b 64 72 61 77 2e 0d |-bit qui|ckdraw..|
|00004d60| 0d 52 65 71 75 69 72 65 | 2e 63 20 74 65 73 74 73 |.Require|.c tests|
|00004d70| 20 66 6f 72 20 61 6e 79 | 20 72 65 71 75 69 72 65 | for any| require|
|00004d80| 64 20 66 70 75 2c 20 63 | 70 75 2c 20 61 6e 64 20 |d fpu, c|pu, and |
|00004d90| 76 65 72 73 69 6f 6e 20 | 6f 66 20 51 75 69 63 6b |version |of Quick|
|00004da0| 44 72 61 77 2c 20 61 6e | 64 20 74 65 73 74 73 20 |Draw, an|d tests |
|00004db0| 66 6f 72 20 63 6f 6e 73 | 69 73 74 65 6e 74 20 73 |for cons|istent s|
|00004dc0| 69 7a 65 6f 66 20 69 6e | 74 20 61 6d 6f 6e 67 20 |izeof in|t among |
|00004dd0| 74 68 65 20 68 65 61 64 | 65 72 2c 20 70 72 6f 67 |the head|er, prog|
|00004de0| 72 61 6d 2c 20 61 6e 64 | 20 53 74 61 6e 64 61 72 |ram, and| Standar|
|00004df0| 64 20 43 20 6c 69 62 72 | 61 72 79 2c 20 61 6e 64 |d C libr|ary, and|
|00004e00| 20 6e 6f 74 69 66 69 65 | 73 20 74 68 65 20 75 73 | notifie|s the us|
|00004e10| 65 72 20 61 6e 64 20 65 | 78 69 74 73 20 67 72 61 |er and e|xits gra|
|00004e20| 63 65 66 75 6c 6c 79 20 | 69 66 20 61 6e 79 20 72 |cefully |if any r|
|00004e30| 65 71 75 69 72 25 6d 65 | 6e 74 20 69 73 20 75 6e |equir%me|nt is un|
|00004e40| 6d 65 74 2e 20 41 6c 6c | 20 74 68 65 20 64 65 6d |met. All| the dem|
|00004e50| 6f 73 20 63 61 6c 6c 20 | 52 65 71 75 69 72 65 28 |os call |Require(|
|00004e60| 29 2e 0d 0d 52 65 73 74 | 6f 72 65 43 6c 75 74 73 |)...Rest|oreCluts|
|00004e70| 2e 63 20 72 65 73 74 6f | 72 65 73 20 74 68 65 20 |.c resto|res the |
|00004e80| 43 6f 6c 6f 72 20 4c 6f | 6f 6b 75 70 20 54 61 62 |Color Lo|okup Tab|
|00004e90| 6c 65 73 20 6f 66 20 61 | 6c 6c 20 73 63 72 65 65 |les of a|ll scree|
|00004ea0| 6e 73 2c 20 74 6f 20 63 | 6c 65 61 6e 20 75 70 20 |ns, to c|lean up |
|00004eb0| 77 68 65 6e 20 79 6f 75 | 72 20 70 72 6f 67 72 61 |when you|r progra|
|00004ec0| 6d 20 69 73 20 64 6f 6e | 65 2e 0d 0d 53 61 6e 65 |m is don|e...Sane|
|00004ed0| 2e 63 20 68 61 73 20 62 | 65 65 6e 20 64 69 73 63 |.c has b|een disc|
|00004ee0| 61 72 64 65 64 2e 20 55 | 73 65 20 66 70 2e 63 20 |arded. U|se fp.c |
|00004ef0| 69 6e 73 74 65 61 64 2e | 0d 0d 53 65 74 45 6e 74 |instead.|..SetEnt|
|00004f00| 72 69 65 73 51 75 69 63 | 6b 6c 79 2e 63 2c 20 77 |riesQuic|kly.c, w|
|00004f10| 72 69 74 74 65 6e 20 70 | 72 69 6d 61 72 69 6c 79 |ritten p|rimarily|
|00004f20| 20 62 79 20 52 61 79 6e | 61 6c 64 20 43 6f 6d 74 | by Rayn|ald Comt|
|00004f30| 6f 69 73 2c 20 50 65 74 | 65 72 20 4c 65 6e 6e 69 |ois, Pet|er Lenni|
|00004f40| 65 2c 20 61 6e 64 20 42 | 69 6c 6c 20 48 61 61 6b |e, and B|ill Haak|
|00004f50| 65 2c 20 71 75 69 63 6b | 6c 79 20 6c 6f 61 64 73 |e, quick|ly loads|
|00004f60| 20 74 68 65 20 63 6c 75 | 74 20 6f 66 20 6d 61 6e | the clu|t of man|
|00004f70| 79 20 70 6f 70 75 6c 61 | 72 20 76 69 64 65 6f 20 |y popula|r video |
|00004f80| 63 61 72 64 73 2e 20 44 | 6f 6e 27 74 20 75 73 65 |cards. D|on't use|
|00004f90| 20 74 68 69 73 20 75 6e | 6c 65 73 73 20 79 6f 75 | this un|less you|
|00004fa0| 20 68 61 76 65 20 74 6f | 2c 20 61 73 20 69 74 20 | have to|, as it |
|00004fb0| 62 79 70 61 73 73 65 73 | 20 74 68 65 20 76 69 64 |bypasses| the vid|
|00004fc0| 65 6f 20 64 72 69 76 65 | 72 2c 20 6d 61 6b 69 6e |eo drive|r, makin|
|00004fd0| 67 20 69 74 20 65 78 74 | 72 65 6d 65 6c 79 20 68 |g it ext|remely h|
|00004fe0| 61 72 64 77 61 72 64 20 | 64 65 70 65 6e 64 65 6e |ardward |dependen|
|00004ff0| 74 2e 20 46 6f 72 20 6d | 6f 73 74 20 76 69 64 65 |t. For m|ost vide|
|00005000| 6f 20 63 61 72 64 73 20 | 74 68 65 72 65 20 69 73 |o cards |there is|
|00005010| 20 6e 6f 20 72 65 61 73 | 6f 6e 20 74 6f 20 62 79 | no reas|on to by|
|00005020| 70 61 73 73 20 74 68 65 | 20 76 69 64 65 6f 20 64 |pass the| video d|
|00005030| 72 69 76 65 72 2e 20 54 | 72 79 20 74 68 65 20 64 |river. T|ry the d|
|00005040| 65 6d 6f 20 54 69 6d 65 | 56 69 64 65 6f 2e 0d 0d |emo Time|Video...|
|00005050| 53 65 74 46 69 6c 65 49 | 6e 66 6f 2e 63 20 69 73 |SetFileI|nfo.c is|
|00005060| 20 61 20 68 61 6e 64 79 | 20 72 6f 75 74 69 6e 65 | a handy| routine|
|00005070| 20 74 6f 20 73 65 74 20 | 74 68 65 20 63 72 65 61 | to set |the crea|
|00005080| 74 6f 72 20 61 6e 64 20 | 74 79 70 65 20 6f 66 20 |tor and |type of |
|00005090| 61 20 66 69 6c 65 2e 20 | 54 68 65 20 6d 61 69 6e |a file. |The main|
|000050a0| 20 75 73 65 20 66 6f 72 | 20 74 68 69 73 20 69 73 | use for| this is|
|000050b0| 20 74 6f 20 6d 61 6b 65 | 20 64 61 74 61 20 66 69 | to make| data fi|
|000050c0| 6c 65 73 20 6f 66 20 74 | 68 65 20 63 6f 72 72 65 |les of t|he corre|
|000050d0| 63 74 20 74 79 70 65 20 | 73 6f 20 74 68 61 74 20 |ct type |so that |
|000050e0| 74 68 65 79 20 63 61 6e | 20 62 65 20 64 6f 75 62 |they can| be doub|
|000050f0| 6c 65 20 63 6c 69 63 6b | 65 64 20 61 6e 64 20 77 |le click|ed and w|
|00005100| 69 6c 6c 20 6f 70 65 6e | 20 64 69 72 65 63 74 6c |ill open| directl|
|00005110| 79 20 69 6e 74 6f 20 74 | 68 65 20 61 6e 61 6c 79 |y into t|he analy|
|00005120| 73 69 73 20 70 72 6f 67 | 72 61 6d 2c 20 74 79 70 |sis prog|ram, typ|
|00005130| 69 63 61 6c 6c 79 20 45 | 78 63 65 6c 20 6f 72 20 |ically E|xcel or |
|00005140| 43 72 69 63 6b 65 74 20 | 47 72 61 70 68 2e 0d 0d |Cricket |Graph...|
|00005150| 53 65 74 4d 6f 75 73 65 | 2e 63 20 6d 6f 76 65 73 |SetMouse|.c moves|
|00005160| 20 74 68 65 20 6d 6f 75 | 73 65 2e 20 49 74 20 63 | the mou|se. It c|
|00005170| 6f 6d 70 6c 65 6d 65 6e | 74 73 20 74 68 65 20 41 |omplemen|ts the A|
|00005180| 70 70 6c 65 2d 73 75 70 | 70 6c 69 65 64 20 47 65 |pple-sup|plied Ge|
|00005190| 74 4d 6f 75 73 65 28 29 | 2e 20 46 72 6f 6d 20 54 |tMouse()|. From T|
|000051a0| 48 49 4e 4b 69 6e 27 20 | 43 61 50 2c 20 31 28 32 |HINKin' |CaP, 1(2|
|000051b0| 29 3a 32 38 2d 32 39 2c | 20 46 61 6c 6c 20 31 39 |):28-29,| Fall 19|
|000051c0| 39 30 2e 0d 0d 53 65 74 | 4f 6e 65 50 69 78 65 6c |90...Set|OnePixel|
|000051d0| 2e 63 20 69 73 20 6f 62 | 73 6f 6c 65 74 65 3b 20 |.c is ob|solete; |
|000051e0| 75 73 65 20 53 65 74 50 | 69 78 65 6c 73 51 75 69 |use SetP|ixelsQui|
|000051f0| 63 6b 6c 79 20 69 6e 73 | 74 65 61 64 2c 20 62 65 |ckly ins|tead, be|
|00005200| 63 61 75 73 65 20 69 74 | 27 73 20 74 65 6e 20 74 |cause it|'s ten t|
|00005210| 69 6d 65 73 20 66 61 73 | 74 65 72 2e 20 54 68 65 |imes fas|ter. The|
|00005220| 20 6f 62 73 6f 6c 65 74 | 65 20 72 6f 75 74 69 6e | obsolet|e routin|
|00005230| 65 73 20 69 6e 63 6c 75 | 64 65 20 47 65 74 4f 6e |es inclu|de GetOn|
|00005240| 65 50 69 78 65 6c 28 29 | 2c 20 53 65 74 44 65 76 |ePixel()|, SetDev|
|00005250| 69 63 65 50 69 78 65 6c | 28 29 2c 20 47 65 74 44 |icePixel|(), GetD|
|00005260| 65 76 69 63 65 50 69 78 | 65 6c 28 29 2c 20 53 65 |evicePix|el(), Se|
|00005270| 74 50 69 78 6d 61 70 50 | 69 78 65 6c 28 29 2c 20 |tPixmapP|ixel(), |
|00005280| 47 65 74 50 69 78 6d 61 | 70 50 69 78 65 6c 28 29 |GetPixma|pPixel()|
|00005290| 2e 0d 0d 53 65 74 50 69 | 78 65 6c 73 51 75 69 63 |...SetPi|xelsQuic|
|000052a0| 6b 6c 79 2e 63 20 70 6f | 6b 65 73 20 6f 72 20 70 |kly.c po|kes or p|
|000052b0| 65 65 6b 73 20 61 20 72 | 6f 77 20 6f 66 20 70 69 |eeks a r|ow of pi|
|000052c0| 78 65 6c 73 2c 20 62 79 | 70 61 73 73 69 6e 67 20 |xels, by|passing |
|000052d0| 74 68 65 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 73 |the colo|r tables|
|000052e0| 2e 20 54 68 69 73 20 69 | 73 20 74 68 65 20 66 61 |. This i|s the fa|
|000052f0| 73 74 65 73 74 20 77 61 | 79 20 74 6f 20 67 65 74 |stest wa|y to get|
|00005300| 20 61 74 20 74 68 65 20 | 70 69 78 65 6c 73 20 69 | at the |pixels i|
|00005310| 6e 20 61 6e 20 69 6d 61 | 67 65 2c 20 66 6f 72 20 |n an ima|ge, for |
|00005320| 69 6d 61 67 65 20 70 72 | 6f 63 65 73 73 69 6e 67 |image pr|ocessing|
|00005330| 20 6f 72 20 73 79 6e 74 | 68 65 73 69 73 2e 20 41 | or synt|hesis. A|
|00005340| 6c 6c 20 74 68 65 20 72 | 6f 75 74 69 6e 65 73 20 |ll the r|outines |
|00005350| 77 6f 72 6b 20 77 69 74 | 68 20 62 6f 74 68 20 62 |work wit|h both b|
|00005360| 69 74 6d 61 70 73 20 61 | 6e 64 20 70 69 78 6d 61 |itmaps a|nd pixma|
|00005370| 70 73 20 61 6e 64 20 61 | 6e 79 20 73 69 7a 65 20 |ps and a|ny size |
|00005380| 6f 66 20 70 69 78 65 6c | 3a 31 2c 20 32 2c 20 34 |of pixel|:1, 2, 4|
|00005390| 2c 20 38 2c 20 31 36 2c | 20 6f 72 20 33 32 20 62 |, 8, 16,| or 32 b|
|000053a0| 69 74 73 2e 20 54 72 79 | 20 74 68 65 20 64 65 6d |its. Try| the dem|
|000053b0| 6f 73 20 47 72 61 74 69 | 6e 67 20 61 6e 64 20 46 |os Grati|ng and F|
|000053c0| 6c 69 63 6b 65 72 69 6e | 67 47 72 61 74 69 6e 67 |lickerin|gGrating|
|000053d0| 2e 0d 0d 53 65 74 50 72 | 69 6f 72 69 74 79 2e 63 |...SetPr|iority.c|
|000053e0| 20 61 6e 64 20 53 77 61 | 70 50 72 69 6f 72 69 74 | and Swa|pPriorit|
|000053f0| 79 28 29 20 61 6c 6c 6f | 77 20 79 6f 75 20 74 6f |y() allo|w you to|
|00005400| 20 73 65 74 20 74 68 65 | 20 70 72 6f 63 65 73 73 | set the| process|
|00005410| 6f 72 20 70 72 69 6f 72 | 69 74 79 20 69 6e 20 6f |or prior|ity in o|
|00005420| 72 64 65 72 20 74 6f 20 | 70 72 65 76 65 6e 74 20 |rder to |prevent |
|00005430| 69 6e 74 65 72 72 75 70 | 74 73 20 64 75 72 69 6e |interrup|ts durin|
|00005440| 67 20 73 6f 6d 65 74 68 | 69 6e 67 20 74 68 61 74 |g someth|ing that|
|00005450| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 64 6f 20 | you wan|t to do |
|00005460| 61 73 20 66 61 73 74 20 | 61 73 20 70 6f 73 73 69 |as fast |as possi|
|00005470| 62 6c 65 2c 20 65 2e 67 | 2e 20 61 6e 69 6d 61 74 |ble, e.g|. animat|
|00005480| 69 6f 6e 73 2c 20 61 6e | 64 20 72 65 73 74 6f 72 |ions, an|d restor|
|00005490| 65 20 69 74 20 6c 61 74 | 65 72 2e 20 4e 6f 74 65 |e it lat|er. Note|
|000054a0| 20 74 68 61 74 20 72 61 | 69 73 69 6e 67 20 74 68 | that ra|ising th|
|000054b0| 65 20 70 72 6f 63 65 73 | 73 6f 72 20 70 72 69 6f |e proces|sor prio|
|000054c0| 72 69 74 79 20 77 69 6c | 6c 20 74 65 6d 70 6f 72 |rity wil|l tempor|
|000054d0| 61 72 69 6c 79 20 6d 61 | 6b 65 20 74 68 65 20 6d |arily ma|ke the m|
|000054e0| 6f 75 73 65 20 61 6e 64 | 20 6b 65 79 62 6f 61 72 |ouse and| keyboar|
|000054f0| 64 20 64 65 61 64 2c 20 | 62 65 63 61 75 73 65 20 |d dead, |because |
|00005500| 74 68 65 79 20 61 72 65 | 20 73 65 72 76 69 63 65 |they are| service|
|00005510| 64 20 62 79 20 69 6e 74 | 65 72 72 75 70 74 73 2e |d by int|errupts.|
|00005520| 0d 0d 53 68 75 66 66 6c | 65 2e 63 20 72 65 6f 72 |..Shuffl|e.c reor|
|00005530| 64 65 72 73 20 74 68 65 | 20 65 6c 65 6d 65 6e 74 |ders the| element|
|00005540| 73 20 6f 66 20 61 6e 79 | 20 61 72 72 61 79 20 69 |s of any| array i|
|00005550| 6e 74 6f 20 61 20 72 61 | 6e 64 6f 6d 20 73 65 71 |nto a ra|ndom seq|
|00005560| 75 65 6e 63 65 2e 0d 0d | 53 6e 64 50 6c 61 79 31 |uence...|SndPlay1|
|00005570| 2e 63 20 70 6c 61 79 73 | 20 61 20 73 6f 75 6e 64 |.c plays| a sound|
|00005580| 20 61 73 79 6e 63 68 72 | 6f 6e 6f 75 73 6c 79 2c | asynchr|onously,|
|00005590| 20 69 2e 65 2e 20 69 74 | 20 72 65 74 75 72 6e 73 | i.e. it| returns|
|000055a0| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 2c 20 77 68 | immedia|tely, wh|
|000055b0| 69 6c 65 20 74 68 65 20 | 73 6f 75 6e 64 20 69 73 |ile the |sound is|
|000055c0| 20 73 74 69 6c 6c 20 70 | 6c 61 79 69 6e 67 2e 0d | still p|laying..|
|000055d0| 0d 53 74 72 69 6e 67 42 | 6f 75 6e 64 73 2e 63 20 |.StringB|ounds.c |
|000055e0| 63 6f 75 6e 74 73 2c 20 | 61 6e 64 20 63 6f 6d 70 |counts, |and comp|
|000055f0| 75 74 65 73 20 74 68 65 | 20 6d 69 6e 69 6d 75 6d |utes the| minimum|
|00005600| 20 62 6f 75 6e 64 69 6e | 67 20 72 65 63 74 61 6e | boundin|g rectan|
|00005610| 67 6c 65 20 66 6f 72 2c | 20 61 6c 6c 20 74 68 65 |gle for,| all the|
|00005620| 20 70 69 78 65 6c 73 20 | 74 68 61 74 20 77 6f 75 | pixels |that wou|
|00005630| 6c 64 20 62 65 20 73 65 | 74 20 62 6c 61 63 6b 20 |ld be se|t black |
|00005640| 62 79 20 63 61 6c 6c 69 | 6e 67 20 44 72 61 77 53 |by calli|ng DrawS|
|00005650| 74 72 69 6e 67 20 77 69 | 74 68 20 74 68 65 20 67 |tring wi|th the g|
|00005660| 69 76 65 6e 20 70 61 73 | 63 61 6c 20 73 74 72 69 |iven pas|cal stri|
|00005670| 6e 67 2c 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |ng, in t|he curre|
|00005680| 6e 74 20 70 6f 72 74 27 | 73 20 66 6f 6e 74 2c 20 |nt port'|s font, |
|00005690| 73 69 7a 65 2c 20 61 6e | 64 20 73 74 79 6c 65 2e |size, an|d style.|
|000056a0| 20 53 74 72 42 6f 75 6e | 64 73 28 29 20 64 6f 65 | StrBoun|ds() doe|
|000056b0| 73 20 74 68 65 20 73 61 | 6d 65 20 66 6f 72 20 61 |s the sa|me for a|
|000056c0| 20 43 20 73 74 72 69 6e | 67 2e 20 43 68 61 72 42 | C strin|g. CharB|
|000056d0| 6f 75 6e 64 73 28 29 20 | 64 6f 65 73 20 74 68 65 |ounds() |does the|
|000056e0| 20 73 61 6d 65 20 66 6f | 72 20 61 20 73 69 6e 67 | same fo|r a sing|
|000056f0| 6c 65 20 63 68 61 72 2e | 20 53 74 72 4f 75 74 6c |le char.| StrOutl|
|00005700| 69 6e 65 4c 65 6e 67 74 | 68 20 61 6e 64 20 53 74 |ineLengt|h and St|
|00005710| 72 69 6e 67 4f 75 74 6c | 69 6e 65 4c 65 6e 67 74 |ringOutl|ineLengt|
|00005720| 68 20 6d 65 61 73 75 72 | 65 20 74 68 65 20 6f 75 |h measur|e the ou|
|00005730| 74 6c 69 6e 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |tline le|ngth of |
|00005740| 61 20 73 74 72 69 6e 67 | 2c 20 69 6e 20 70 69 78 |a string|, in pix|
|00005750| 65 6c 73 2e 20 0d 0d 53 | 74 72 69 6e 67 54 6f 44 |els. ..S|tringToD|
|00005760| 61 74 65 41 6e 64 53 65 | 63 73 2e 63 20 72 65 61 |ateAndSe|cs.c rea|
|00005770| 64 73 20 64 61 74 65 20 | 73 75 63 68 20 61 73 20 |ds date |such as |
|00005780| 22 36 2f 33 30 2f 39 31 | 22 20 61 6e 64 20 72 65 |"6/30/91|" and re|
|00005790| 74 75 72 6e 73 20 73 65 | 63 73 20 73 69 6e 63 65 |turns se|cs since|
|000057a0| 20 31 2f 31 2f 31 39 30 | 34 2e 0d 0d 54 69 6d 65 | 1/1/190|4...Time|
|000057b0| 72 2e 63 20 69 73 20 61 | 6e 20 69 6e 74 65 72 76 |r.c is a|n interv|
|000057c0| 61 6c 20 74 69 6d 65 72 | 20 62 61 73 65 64 20 6f |al timer| based o|
|000057d0| 6e 20 41 70 70 6c 65 27 | 73 20 54 69 6d 65 20 4d |n Apple'|s Time M|
|000057e0| 61 6e 61 67 65 72 2e 20 | 50 65 65 6b 54 69 6d 65 |anager. |PeekTime|
|000057f0| 72 53 65 63 73 28 29 20 | 61 6e 64 20 53 74 6f 70 |rSecs() |and Stop|
|00005800| 54 69 6d 65 72 53 65 63 | 73 28 29 20 72 65 74 75 |TimerSec|s() retu|
|00005810| 72 6e 20 74 68 65 20 65 | 6c 61 70 73 65 64 20 74 |rn the e|lapsed t|
|00005820| 69 6d 65 20 61 73 20 61 | 20 64 6f 75 62 6c 65 2c |ime as a| double,|
|00005830| 20 69 6e 20 73 65 63 6f | 6e 64 73 2c 20 73 69 6e | in seco|nds, sin|
|00005840| 63 65 20 63 61 6c 6c 69 | 6e 67 20 53 74 61 72 74 |ce calli|ng Start|
|00005850| 54 69 6d 65 72 28 29 2e | 20 50 65 65 6b 54 69 6d |Timer().| PeekTim|
|00005860| 65 72 28 29 20 61 6e 64 | 20 53 74 6f 70 54 69 6d |er() and| StopTim|
|00005870| 65 72 28 29 20 72 65 74 | 75 72 6e 20 74 68 65 20 |er() ret|urn the |
|00005880| 74 69 6d 65 2c 20 61 73 | 20 61 20 6c 6f 6e 67 2c |time, as| a long,|
|00005890| 20 69 6e 20 b5 73 2e 20 | 54 72 79 20 74 68 65 20 | in .s. |Try the |
|000058a0| 64 65 6d 6f 73 20 54 69 | 6d 65 43 50 55 20 61 6e |demos Ti|meCPU an|
|000058b0| 64 20 54 69 6d 65 56 69 | 64 65 6f 2e 0d 0d 54 69 |d TimeVi|deo...Ti|
|000058c0| 74 6c 65 42 61 72 48 65 | 69 67 68 74 2e 63 20 72 |tleBarHe|ight.c r|
|000058d0| 65 74 75 72 6e 73 20 74 | 68 65 20 68 65 69 67 68 |eturns t|he heigh|
|000058e0| 74 20 6f 66 20 61 20 77 | 69 6e 64 6f 77 27 73 20 |t of a w|indow's |
|000058f0| 74 69 74 6c 65 20 62 61 | 72 2c 20 69 6e 20 70 69 |title ba|r, in pi|
|00005900| 78 65 6c 73 2e 0d 0d 54 | 72 61 70 41 76 61 69 6c |xels...T|rapAvail|
|00005910| 61 62 6c 65 2e 63 2c 20 | 66 72 6f 6d 20 41 70 70 |able.c, |from App|
|00005920| 6c 65 2c 20 64 65 74 65 | 72 6d 69 6e 65 73 20 77 |le, dete|rmines w|
|00005930| 68 65 74 68 65 72 20 61 | 20 70 61 72 74 69 63 75 |hether a| particu|
|00005940| 6c 61 72 20 74 72 61 70 | 20 69 73 20 61 76 61 69 |lar trap| is avai|
|00005950| 6c 61 62 6c 65 2e 0d 0d | 54 72 61 6e 73 6c 61 74 |lable...|Translat|
|00005960| 65 4c 69 6e 65 66 65 65 | 64 73 2e 63 2c 20 61 6e |eLinefee|ds.c, an|
|00005970| 64 20 54 72 61 6e 73 6c | 61 74 65 4c 69 6e 65 66 |d Transl|ateLinef|
|00005980| 65 65 64 73 2e 68 2c 20 | 61 72 65 20 66 6f 72 20 |eeds.h, |are for |
|00005990| 4d 41 54 4c 41 42 20 70 | 72 6f 6a 65 63 74 73 2e |MATLAB p|rojects.|
|000059a0| 20 54 68 65 79 20 68 65 | 6c 70 20 6d 61 6b 65 20 | They he|lp make |
|000059b0| 54 48 49 4e 4b 20 43 20 | 63 6f 64 65 20 6d 6f 64 |THINK C |code mod|
|000059c0| 75 6c 65 73 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |ules com|patible |
|000059d0| 77 69 74 68 20 74 68 65 | 20 4d 50 57 20 73 74 64 |with the| MPW std|
|000059e0| 69 6f 20 6c 69 62 72 61 | 72 79 2e 0d 0d 55 6e 69 |io libra|ry...Uni|
|000059f0| 66 6f 72 6d 2e 63 3a 20 | 55 6e 69 66 6f 72 6d 53 |form.c: |UniformS|
|00005a00| 61 6d 70 6c 65 28 29 20 | 72 65 74 75 72 6e 73 20 |ample() |returns |
|00005a10| 61 20 72 61 6e 64 6f 6d | 20 73 61 6d 70 6c 65 20 |a random| sample |
|00005a20| 66 72 6f 6d 20 74 68 65 | 20 69 6e 74 65 72 76 61 |from the| interva|
|00005a30| 6c 20 5b 30 2e 30 2c 31 | 2e 30 29 2e 0d 0d 56 42 |l [0.0,1|.0)...VB|
|00005a40| 4c 49 6e 73 74 61 6c 6c | 2e 63 20 69 6d 70 6c 65 |LInstall|.c imple|
|00005a50| 6d 65 6e 74 73 20 61 20 | 6f 6e 63 65 2d 70 65 72 |ments a |once-per|
|00005a60| 2d 76 69 64 65 6f 2d 66 | 72 61 6d 65 20 69 6e 74 |-video-f|rame int|
|00005a70| 65 72 72 75 70 74 20 73 | 75 69 74 61 62 6c 65 20 |errupt s|uitable |
|00005a80| 66 6f 72 20 75 73 65 20 | 77 69 74 68 20 61 6c 6c |for use |with all|
|00005a90| 20 76 69 64 65 6f 20 64 | 65 76 69 63 65 73 2e 20 | video d|evices. |
|00005aa0| 54 72 79 20 74 68 65 20 | 64 65 6d 6f 20 54 69 6d |Try the |demo Tim|
|00005ab0| 65 56 69 64 65 6f 2e 0d | 0d 56 69 64 65 6f 54 46 |eVideo..|.VideoTF|
|00005ac0| 42 2e 63 20 61 6c 6c 6f | 77 73 20 64 69 72 65 63 |B.c allo|ws direc|
|00005ad0| 74 20 63 6f 6e 74 72 6f | 6c 20 6f 66 20 74 68 65 |t contro|l of the|
|00005ae0| 20 6f 72 69 67 69 6e 61 | 6c 20 41 70 70 6c 65 20 | origina|l Apple |
|00005af0| 63 6f 6c 6f 72 20 76 69 | 64 65 6f 20 63 61 72 64 |color vi|deo card|
|00005b00| 2c 20 77 68 69 63 68 20 | 69 73 20 6e 6f 20 6c 6f |, which |is no lo|
|00005b10| 6e 67 65 72 20 73 6f 6c | 64 20 62 79 20 41 70 70 |nger sol|d by App|
|00005b20| 6c 65 20 62 75 74 20 69 | 73 20 61 76 61 69 6c 61 |le but i|s availa|
|00005b30| 62 6c 65 20 66 6f 72 20 | 24 39 30 20 66 72 6f 6d |ble for |$90 from|
|00005b40| 20 53 68 72 65 76 65 20 | 53 79 73 74 65 6d 73 20 | Shreve |Systems |
|00005b50| 28 38 30 30 2d 32 32 37 | 2d 33 39 37 31 29 2e 20 |(800-227|-3971). |
|00005b60| 49 20 77 72 6f 74 65 20 | 69 74 20 62 61 73 65 64 |I wrote |it based|
|00005b70| 20 6f 6e 20 6d 79 20 64 | 69 73 61 73 73 65 6d 62 | on my d|isassemb|
|00005b80| 6c 79 20 6f 66 20 74 68 | 65 20 41 70 70 6c 65 20 |ly of th|e Apple |
|00005b90| 76 69 64 65 6f 20 64 72 | 69 76 65 72 2e 20 44 6f |video dr|iver. Do|
|00005ba0| 6e 27 74 20 75 73 65 20 | 74 68 65 73 65 20 72 6f |n't use |these ro|
|00005bb0| 75 74 69 6e 65 73 20 75 | 6e 6c 65 73 73 20 79 6f |utines u|nless yo|
|00005bc0| 75 27 72 65 20 70 72 65 | 70 61 72 65 64 20 74 6f |u're pre|pared to|
|00005bd0| 20 6c 69 76 65 20 77 69 | 74 68 20 74 68 65 20 72 | live wi|th the r|
|00005be0| 65 73 75 6c 74 69 6e 67 | 20 68 61 72 64 77 61 72 |esulting| hardwar|
|00005bf0| 65 20 64 65 70 65 6e 64 | 65 6e 63 79 2e 20 56 69 |e depend|ency. Vi|
|00005c00| 64 65 6f 54 46 42 20 77 | 6f 72 6b 73 20 77 69 74 |deoTFB w|orks wit|
|00005c10| 68 20 62 6f 74 68 20 74 | 68 65 20 22 54 6f 62 79 |h both t|he "Toby|
|00005c20| 20 66 72 61 6d 65 20 62 | 75 66 66 65 72 20 63 61 | frame b|uffer ca|
|00005c30| 72 64 22 20 61 6e 64 20 | 74 68 65 20 22 4d 61 63 |rd" and |the "Mac|
|00005c40| 20 49 49 20 48 69 67 68 | 2d 52 65 73 6f 6c 75 74 | II High|-Resolut|
|00005c50| 69 6f 6e 20 56 69 64 65 | 6f 20 43 61 72 64 22 2e |ion Vide|o Card".|
|00005c60| 20 54 72 79 20 74 68 65 | 20 64 65 6d 6f 73 20 53 | Try the| demos S|
|00005c70| 63 72 6f 6c 6c 44 65 6d | 6f 20 61 6e 64 20 54 69 |crollDem|o and Ti|
|00005c80| 6d 65 56 69 64 65 6f 2e | 0d 0d 56 69 64 65 6f 54 |meVideo.|..VideoT|
|00005c90| 6f 6f 6c 62 6f 78 2e 68 | 20 69 73 20 74 68 65 20 |oolbox.h| is the |
|00005ca0| 68 65 61 64 65 72 20 66 | 69 6c 65 20 74 68 61 74 |header f|ile that|
|00005cb0| 20 68 61 73 20 74 68 65 | 20 70 72 6f 74 6f 74 79 | has the| prototy|
|00005cc0| 70 65 73 20 66 6f 72 20 | 61 6c 6c 20 74 68 65 20 |pes for |all the |
|00005cd0| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 20 72 6f 75 |VideoToo|lbox rou|
|00005ce0| 74 69 6e 65 73 20 65 78 | 63 65 70 74 20 74 68 6f |tines ex|cept tho|
|00005cf0| 73 65 20 69 6e 20 4c 75 | 6d 69 6e 61 6e 63 65 2e |se in Lu|minance.|
|00005d00| 63 20 28 77 68 6f 73 65 | 20 68 65 61 64 65 72 73 |c (whose| headers|
|00005d10| 20 61 72 65 20 69 6e 20 | 4c 75 6d 69 6e 61 6e 63 | are in |Luminanc|
|00005d20| 65 2e 68 29 20 61 6e 64 | 20 53 61 6e 65 2e 63 2e |e.h) and| Sane.c.|
|00005d30| 20 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 2e 68 20 | VideoTo|olbox.h |
|00005d40| 61 6c 73 6f 20 64 65 66 | 69 6e 65 73 20 61 20 76 |also def|ines a v|
|00005d50| 61 72 69 65 74 79 20 6f | 66 20 75 73 65 66 75 6c |ariety o|f useful|
|00005d60| 20 70 72 65 2d 70 72 6f | 63 65 73 73 6f 72 20 6d | pre-pro|cessor m|
|00005d70| 61 63 72 6f 73 2e 20 54 | 52 55 45 20 61 6e 64 20 |acros. T|RUE and |
|00005d80| 46 41 4c 53 45 2e 20 4e | 75 6d 65 72 69 63 61 6c |FALSE. N|umerical|
|00005d90| 20 63 6f 6e 73 74 61 6e | 74 73 3a 20 49 4e 46 2c | constan|ts: INF,|
|00005da0| 20 4e 41 4e 2c 20 50 49 | 2c 20 4c 4f 47 50 49 2c | NAN, PI|, LOGPI,|
|00005db0| 20 4c 4f 47 32 2c 20 4c | 4f 47 31 30 2e 20 47 44 | LOG2, L|OG10. GD|
|00005dc0| 43 4c 55 54 53 49 5a 45 | 28 64 65 76 69 63 65 29 |CLUTSIZE|(device)|
|00005dd0| 20 65 78 70 61 6e 64 73 | 20 74 6f 20 66 61 73 74 | expands| to fast|
|00005de0| 20 69 6e 6c 69 6e 65 20 | 63 6f 64 65 20 74 68 61 | inline |code tha|
|00005df0| 74 20 79 69 65 6c 64 73 | 20 74 68 65 20 73 61 6d |t yields| the sam|
|00005e00| 65 20 61 6e 73 77 65 72 | 20 61 73 20 47 44 43 6c |e answer| as GDCl|
|00005e10| 75 74 53 69 7a 65 28 64 | 65 76 69 63 65 29 2e 20 |utSize(d|evice). |
|00005e20| 46 69 78 65 64 20 70 6f | 69 6e 74 20 61 72 69 74 |Fixed po|int arit|
|00005e30| 68 6d 65 74 69 63 3a 20 | 6a 66 3d 4c 6f 6e 67 54 |hmetic: |jf=LongT|
|00005e40| 6f 46 69 78 28 6a 29 3b | 20 6a 3d 46 69 78 54 6f |oFix(j);| j=FixTo|
|00005e50| 4c 6f 6e 67 28 6a 66 29 | 3b 20 6a 66 3d 44 6f 75 |Long(jf)|; jf=Dou|
|00005e60| 62 6c 65 54 6f 46 69 78 | 28 61 29 3b 20 61 3d 46 |bleToFix|(a); a=F|
|00005e70| 69 78 54 6f 44 6f 75 62 | 6c 65 28 6a 66 29 3b 20 |ixToDoub|le(jf); |
|00005e80| 53 74 61 63 6b 47 72 6f | 77 28 6e 29 20 69 6e 63 |StackGro|w(n) inc|
|00005e90| 72 65 61 73 65 73 20 74 | 68 65 20 73 74 61 63 6b |reases t|he stack|
|00005ea0| 20 61 6c 6c 6f 63 61 74 | 69 6f 6e 20 62 79 20 6e | allocat|ion by n|
|00005eb0| 20 62 79 74 65 73 2e 20 | 59 6f 75 27 6c 6c 20 61 | bytes. |You'll a|
|00005ec0| 6c 73 6f 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 |lso want| to use |
|00005ed0| 41 70 70 6c 65 27 73 20 | 53 74 61 63 6b 53 70 61 |Apple's |StackSpa|
|00005ee0| 63 65 28 29 2c 20 64 65 | 63 6c 61 72 65 64 20 69 |ce(), de|clared i|
|00005ef0| 6e 20 4d 65 6d 6f 72 79 | 2e 68 2c 20 74 68 61 74 |n Memory|.h, that|
|00005f00| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 6e 75 6d | returns| the num|
|00005f10| 62 65 72 20 6f 66 20 62 | 79 74 65 73 20 61 6c 6c |ber of b|ytes all|
|00005f20| 6f 63 61 74 65 64 20 66 | 6f 72 20 74 68 65 20 73 |ocated f|or the s|
|00005f30| 74 61 63 6b 2e 0d 0d 56 | 4c 61 6d 62 64 61 2e 63 |tack...V|Lambda.c|
|00005f40| 20 61 6e 64 20 56 4c 61 | 6d 62 64 61 50 72 69 6d | and VLa|mbdaPrim|
|00005f50| 65 28 64 6f 75 62 6c 65 | 20 6e 6d 29 20 72 65 74 |e(double| nm) ret|
|00005f60| 75 72 6e 20 74 68 65 20 | 70 68 6f 74 6f 70 69 63 |urn the |photopic|
|00005f70| 20 61 6e 64 20 73 63 6f | 74 6f 70 69 63 20 73 65 | and sco|topic se|
|00005f80| 6e 73 69 74 69 76 69 74 | 79 20 6f 66 20 74 68 65 |nsitivit|y of the|
|00005f90| 20 73 74 61 6e 64 61 72 | 64 20 43 49 45 20 6f 62 | standar|d CIE ob|
|00005fa0| 73 65 72 76 65 72 2c 20 | 72 65 6c 61 74 69 76 65 |server, |relative|
|00005fb0| 20 74 6f 20 74 68 65 20 | 70 65 61 6b 20 61 74 20 | to the |peak at |
|00005fc0| 35 35 35 20 6f 72 20 35 | 30 37 20 6e 6d 2e 20 42 |555 or 5|07 nm. B|
|00005fd0| 61 73 65 64 20 6f 6e 20 | 54 61 62 6c 65 73 20 49 |ased on |Tables I|
|00005fe0| 28 33 2e 33 2e 31 29 20 | 61 6e 64 20 49 28 34 2e |(3.3.1) |and I(4.|
|00005ff0| 33 2e 32 29 20 69 6e 20 | 47 2e 20 57 79 73 7a 65 |3.2) in |G. Wysze|
|00006000| 63 6b 69 20 61 6e 64 20 | 57 2e 53 2e 20 53 74 69 |cki and |W.S. Sti|
|00006010| 6c 65 73 20 28 31 39 38 | 32 29 20 43 6f 6c 6f 72 |les (198|2) Color|
|00006020| 20 53 63 69 65 6e 63 65 | 2c 20 32 6e 64 20 45 64 | Science|, 2nd Ed|
|00006030| 2e 2c 20 57 69 6c 65 79 | 2c 20 4e 65 77 20 59 6f |., Wiley|, New Yo|
|00006040| 72 6b 2e 0d 0d 57 69 6e | 64 6f 77 54 6f 45 50 53 |rk...Win|dowToEPS|
|00006050| 2e 63 3a 20 73 61 76 65 | 73 20 74 68 65 20 69 6d |.c: save|s the im|
|00006060| 61 67 65 20 69 6e 20 61 | 20 77 69 6e 64 6f 77 20 |age in a| window |
|00006070| 6f 72 20 47 57 6f 72 6c | 64 20 74 6f 20 64 69 73 |or GWorl|d to dis|
|00006080| 6b 2e 20 54 72 79 20 74 | 68 65 20 64 65 6d 6f 20 |k. Try t|he demo |
|00006090| 47 72 61 74 69 6e 67 2e | 0d 0d 5a 6f 6f 6d 2e 63 |Grating.|..Zoom.c|
|000060a0| 20 69 6d 70 6c 65 6d 65 | 6e 74 73 20 61 20 7a 6f | impleme|nts a zo|
|000060b0| 6f 6d 20 62 6f 78 2c 20 | 69 2e 65 2e 20 69 66 20 |om box, |i.e. if |
|000060c0| 79 6f 75 20 63 6c 69 63 | 6b 20 69 6e 20 74 68 65 |you clic|k in the|
|000060d0| 20 75 70 70 65 72 20 72 | 69 67 68 74 20 68 61 6e | upper r|ight han|
|000060e0| 64 20 63 6f 72 6e 65 72 | 20 6f 66 20 79 6f 75 72 |d corner| of your|
|000060f0| 20 77 69 6e 64 6f 77 2c | 20 69 6e 20 74 68 65 20 | window,| in the |
|00006100| 6c 69 74 74 6c 65 20 62 | 6f 78 2d 69 6e 2d 61 2d |little b|ox-in-a-|
|00006110| 62 6f 78 20 69 63 6f 6e | 2c 20 74 68 69 73 20 63 |box icon|, this c|
|00006120| 6f 64 65 20 77 69 6c 6c | 20 65 78 70 61 6e 64 20 |ode will| expand |
|00006130| 74 68 65 20 77 69 6e 64 | 6f 77 20 74 6f 20 66 69 |the wind|ow to fi|
|00006140| 6c 6c 20 74 68 65 20 73 | 63 72 65 65 6e 20 77 69 |ll the s|creen wi|
|00006150| 74 68 20 77 68 69 63 68 | 20 69 74 20 68 61 73 20 |th which| it has |
|00006160| 74 68 65 20 67 72 65 61 | 74 65 73 74 20 69 6e 74 |the grea|test int|
|00006170| 65 72 73 65 63 74 69 6f | 6e 2e 0d 0d 00 00 00 00 |ersectio|n.......|
|00006180| 00 00 01 00 00 00 01 b4 | 00 00 00 b4 00 00 00 82 |........|........|
|00006190| 4a ff 00 00 00 76 74 54 | 45 58 54 4d 50 53 20 00 |J....vtT|EXTMPS .|
|000061a0| 0f 00 00 00 00 00 00 00 | 00 a9 02 00 06 ff ff ff |........|........|
|000061b0| 08 43 6f 6e 74 65 6e 74 | 73 00 02 00 00 00 50 61 |.Content|s.....Pa|
|000061c0| 72 74 53 49 54 21 00 00 | 00 00 00 00 00 00 00 00 |rtSIT!..|........|
|000061d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000061e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 ab bf ee 23 00 00 | 00 00 00 00 02 36 00 00 |.....#..|.....6..|
|00006200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006280| 00 00 00 2a 00 09 06 47 | 65 6e 65 76 61 00 00 00 |...*...G|eneva...|
|00006290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062b0| 00 04 00 06 00 04 00 00 | 00 14 02 0a 00 34 00 18 |........|.....4..|
|000062c0| ff f4 00 0c ff ff 00 00 | 00 21 00 00 00 21 00 00 |........|.!...!..|
|000062d0| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 9c ff 92 01 2c |.H..Mona|co.....,|
|000062e0| 02 12 00 00 00 00 00 82 | 01 24 00 7d 85 0c 00 7d |........|.$.}...}|
|000062f0| 86 0c 00 4b 00 06 00 04 | 00 2d 00 09 01 8a 01 e8 |...K....|.-......|
|00006300| 00 2d 00 09 01 8a 01 e8 | aa e2 b4 75 00 00 3d 38 |.-......|...u..=8|
|00006310| 00 00 3d 38 00 00 37 8c | 03 00 00 00 00 16 00 01 |..=8..7.|........|
|00006320| 00 00 00 00 00 10 00 0c | 00 01 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 01 00 | 00 00 01 b4 00 00 00 b4 |........|........|
|00006340| 00 00 00 82 00 c9 14 d8 | 27 aa 00 00 00 1c 00 82 |........|'.......|
|00006350| 00 04 45 46 4e 54 00 00 | 00 2a 45 54 41 42 00 00 |..EFNT..|.*ETAB..|
|00006360| 00 36 45 51 45 44 00 00 | 00 42 4d 50 53 52 00 00 |.6EQED..|.BMPSR..|
|00006370| 00 4e 73 74 79 6c 00 00 | 00 5a 03 eb ff ff 00 00 |.Nstyl..|.Z......|
|00006380| 00 00 00 00 00 00 03 ec | ff ff 00 00 00 2e 00 00 |........|........|
|00006390| 00 00 03 eb ff ff 00 00 | 00 36 00 00 00 00 03 ed |........|.6......|
|000063a0| ff ff 00 00 00 4e 00 00 | 00 00 00 80 ff ff 00 00 |.....N..|........|
|000063b0| 00 9a 00 c9 15 84 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+